Révision fa92e118
Pet rubocop
spec/defines/config_spec.rb | ||
---|---|---|
17 | 17 |
is_expected.to contain_concat('nftables-FOO-BAR').with( |
18 | 18 |
path: '/etc/nftables/puppet-preflight/custom-FOO-BAR.nft', |
19 | 19 |
ensure_newline: true, |
20 |
mode: '0640',
|
|
20 |
mode: '0640' |
|
21 | 21 |
) |
22 | 22 |
} |
23 | 23 |
it { is_expected.to contain_file('/etc/nftables/puppet/custom-FOO-BAR.nft') } |
... | ... | |
25 | 25 |
is_expected.to contain_file('/etc/nftables/puppet/custom-FOO-BAR.nft').with( |
26 | 26 |
ensure: 'file', |
27 | 27 |
source: '/etc/nftables/puppet-preflight/custom-FOO-BAR.nft', |
28 |
mode: '0640',
|
|
28 |
mode: '0640' |
|
29 | 29 |
) |
30 | 30 |
} |
31 | 31 |
it { is_expected.to contain_concat_fragment('nftables-FOO-BAR-header') } |
... | ... | |
33 | 33 |
is_expected.to contain_concat_fragment('nftables-FOO-BAR-header').with( |
34 | 34 |
target: 'nftables-FOO-BAR', |
35 | 35 |
order: '00', |
36 |
content: 'table FOO BAR {',
|
|
36 |
content: 'table FOO BAR {' |
|
37 | 37 |
) |
38 | 38 |
} |
39 | 39 |
it { |
40 | 40 |
is_expected.to contain_concat_fragment('nftables-FOO-BAR-body').with( |
41 | 41 |
target: 'nftables-FOO-BAR', |
42 | 42 |
order: '98', |
43 |
content: ' include "FOO-BAR-chain-*.nft"',
|
|
43 |
content: ' include "FOO-BAR-chain-*.nft"' |
|
44 | 44 |
) |
45 | 45 |
} |
46 | 46 |
end |
... | ... | |
76 | 76 |
is_expected.to contain_concat('nftables-FOO-BAR').with( |
77 | 77 |
path: '/etc/nftables/puppet-preflight/custom-FOO-BAR.nft', |
78 | 78 |
ensure_newline: true, |
79 |
mode: '0640',
|
|
79 |
mode: '0640' |
|
80 | 80 |
) |
81 | 81 |
} |
82 | 82 |
it { is_expected.to contain_file('/etc/nftables/puppet/custom-FOO-BAR.nft') } |
... | ... | |
84 | 84 |
is_expected.to contain_file('/etc/nftables/puppet/custom-FOO-BAR.nft').with( |
85 | 85 |
ensure: 'file', |
86 | 86 |
source: '/etc/nftables/puppet-preflight/custom-FOO-BAR.nft', |
87 |
mode: '0640',
|
|
87 |
mode: '0640' |
|
88 | 88 |
) |
89 | 89 |
} |
90 | 90 |
it { is_expected.to contain_concat_fragment('nftables-FOO-BAR-header') } |
... | ... | |
92 | 92 |
is_expected.to contain_concat_fragment('nftables-FOO-BAR-header').with( |
93 | 93 |
target: 'nftables-FOO-BAR', |
94 | 94 |
order: '00', |
95 |
content: 'table FOO BAR {',
|
|
95 |
content: 'table FOO BAR {' |
|
96 | 96 |
) |
97 | 97 |
} |
98 | 98 |
it { |
99 | 99 |
is_expected.to contain_concat_fragment('nftables-FOO-BAR-body').with( |
100 | 100 |
target: 'nftables-FOO-BAR', |
101 | 101 |
order: '98', |
102 |
content: 'strange content',
|
|
102 |
content: 'strange content' |
|
103 | 103 |
) |
104 | 104 |
} |
105 | 105 |
end |
... | ... | |
114 | 114 |
is_expected.to contain_concat_fragment('nftables-FOO-BAR-body').with( |
115 | 115 |
target: 'nftables-FOO-BAR', |
116 | 116 |
order: '98', |
117 |
source: 'puppet:///modules/foo',
|
|
117 |
source: 'puppet:///modules/foo' |
|
118 | 118 |
) |
119 | 119 |
} |
120 | 120 |
end |
Formats disponibles : Unified diff