Révision 92e0fcb6
fix #74 - ensure table are initialized before flushing them (#75)
spec/classes/nftables_spec.rb | ||
---|---|---|
192 | 192 |
|
193 | 193 |
it { |
194 | 194 |
is_expected.to contain_file('/etc/nftables/puppet-preflight.nft'). |
195 |
with_content(%r{^table inet abc \{\}$}) |
|
196 |
} |
|
197 |
it { |
|
198 |
is_expected.to contain_file('/etc/nftables/puppet-preflight.nft'). |
|
195 | 199 |
with_content(%r{^flush table inet abc$}) |
196 | 200 |
} |
197 | 201 |
end |
... | ... | |
202 | 206 |
|
203 | 207 |
it { |
204 | 208 |
is_expected.to contain_file('/etc/nftables/puppet-preflight.nft'). |
205 |
with_content(%r{^flush table inet abc; flush table inet ijk$}) |
|
209 |
with_content(%r{^table inet abc \{\}$}) |
|
210 |
} |
|
211 |
it { |
|
212 |
is_expected.to contain_file('/etc/nftables/puppet-preflight.nft'). |
|
213 |
with_content(%r{^flush table inet abc$}) |
|
214 |
} |
|
215 |
it { |
|
216 |
is_expected.to contain_file('/etc/nftables/puppet-preflight.nft'). |
|
217 |
with_content(%r{^table inet ijk \{\}$}) |
|
218 |
} |
|
219 |
it { |
|
220 |
is_expected.to contain_file('/etc/nftables/puppet-preflight.nft'). |
|
221 |
with_content(%r{^flush table inet ijk$}) |
|
206 | 222 |
} |
207 | 223 |
end |
208 | 224 |
end |
Formats disponibles : Unified diff