Projet

Général

Profil

Révision 01d8a819

ID01d8a819a56fcaf14e4b7b73774a6ed4dc30635a
Parent 705bb26f
Enfant 9d7d63a6

Ajouté par tr il y a plus de 4 ans

Styling to make tests green

Voir les différences:

spec/classes/nftables_spec.rb
11 11

  
12 12
      it { is_expected.to contain_package('nftables') }
13 13

  
14
      it { is_expected.to contain_file('/etc/nftables/puppet.nft').with(
15
        :ensure => 'file',
16
        :owner  => 'root',
17
        :group  => 'root',
18
        :mode   => '0640',
19
        :source => 'puppet:///modules/nftables/config/puppet.nft',
20
      )}
21

  
22
      it { is_expected.to contain_file('/etc/nftables/puppet').with(
23
        :ensure  => 'directory',
24
        :owner   => 'root',
25
        :group   => 'root',
26
        :mode    => '0750',
27
        :purge   => true,
28
        :force   => true,
29
        :recurse => true,
30
      )}
31

  
32
      it { is_expected.to contain_service('nftables').with(
33
        :ensure => 'running',
34
        :enable => true,
35
      )}
36

  
37
      it { is_expected.to contain_service('firewalld').with(
38
        :ensure => 'stopped',
39
        :enable => 'mask',
40
      )}
14
      it {
15
        is_expected.to contain_file('/etc/nftables/puppet.nft').with(
16
          ensure: 'file',
17
          owner:  'root',
18
          group:  'root',
19
          mode:   '0640',
20
          source: 'puppet:///modules/nftables/config/puppet.nft',
21
        )
22
      }
23

  
24
      it {
25
        is_expected.to contain_file('/etc/nftables/puppet').with(
26
          ensure:  'directory',
27
          owner:   'root',
28
          group:   'root',
29
          mode:    '0750',
30
          purge:   true,
31
          force:   true,
32
          recurse: true,
33
        )
34
      }
35

  
36
      it {
37
        is_expected.to contain_service('nftables').with(
38
          ensure: 'running',
39
          enable: true,
40
        )
41
      }
42

  
43
      it {
44
        is_expected.to contain_service('firewalld').with(
45
          ensure: 'stopped',
46
          enable: 'mask',
47
        )
48
      }
41 49
    end
42 50
  end
43 51
end

Formats disponibles : Unified diff