Révision 82d10659
Allow disabling default NAT tables and chains
spec/classes/ip_nat_spec.rb | ||
---|---|---|
234 | 234 |
) |
235 | 235 |
} |
236 | 236 |
end |
237 |
|
|
238 |
context 'all nat tables disabled' do |
|
239 |
let(:params) do |
|
240 |
{ |
|
241 |
'nat' => false, |
|
242 |
} |
|
243 |
end |
|
244 |
|
|
245 |
it { is_expected.not_to contain_class('nftables::ip_nat') } |
|
246 |
it { is_expected.not_to contain_nftables__config('ip-nat') } |
|
247 |
it { is_expected.not_to contain_nftables__config('ip6-nat') } |
|
248 |
it { is_expected.not_to contain_nftables__chain('PREROUTING') } |
|
249 |
it { is_expected.not_to contain_nftables__chain('POSTROUTING') } |
|
250 |
it { is_expected.not_to contain_nftables__chain('PREROUTING6') } |
|
251 |
it { is_expected.not_to contain_nftables__chain('POSTROUTING6') } |
|
252 |
end |
|
237 | 253 |
end |
238 | 254 |
end |
239 | 255 |
end |
Formats disponibles : Unified diff