Révision 605d5fde
Add spec tests for ip nat chain policies
spec/classes/ip_nat_spec.rb | ||
---|---|---|
34 | 34 |
:content => /^ type nat hook prerouting priority -100$/, |
35 | 35 |
:order => '01', |
36 | 36 |
)} |
37 |
it { is_expected.to contain_concat__fragment('nftables-ip-nat-chain-PREROUTING-rule-policy').with( |
|
38 |
:target => 'nftables-ip-nat-chain-PREROUTING', |
|
39 |
:content => /^ policy accept$/, |
|
40 |
:order => '02', |
|
41 |
)} |
|
37 | 42 |
it { is_expected.to contain_concat__fragment('nftables-ip-nat-chain-PREROUTING-footer').with( |
38 | 43 |
:target => 'nftables-ip-nat-chain-PREROUTING', |
39 | 44 |
:content => /^}$/, |
... | ... | |
59 | 64 |
:content => /^ type nat hook postrouting priority 100$/, |
60 | 65 |
:order => '01', |
61 | 66 |
)} |
67 |
it { is_expected.to contain_concat__fragment('nftables-ip-nat-chain-POSTROUTING-rule-policy').with( |
|
68 |
:target => 'nftables-ip-nat-chain-POSTROUTING', |
|
69 |
:content => /^ policy accept$/, |
|
70 |
:order => '02', |
|
71 |
)} |
|
62 | 72 |
it { is_expected.to contain_concat__fragment('nftables-ip-nat-chain-POSTROUTING-footer').with( |
63 | 73 |
:target => 'nftables-ip-nat-chain-POSTROUTING', |
64 | 74 |
:content => /^}$/, |
Formats disponibles : Unified diff