Révision fa92e118
Pet rubocop
spec/classes/rules/icmp_spec.rb | ||
---|---|---|
10 | 10 |
it { |
11 | 11 |
is_expected.to contain_nftables__rule('default_in-accept_icmpv4').with( |
12 | 12 |
content: 'ip protocol icmp accept', |
13 |
order: '10',
|
|
13 |
order: '10' |
|
14 | 14 |
) |
15 | 15 |
} |
16 | 16 |
it { |
17 | 17 |
is_expected.to contain_nftables__rule('default_in-accept_icmpv6').with( |
18 | 18 |
content: 'ip6 nexthdr ipv6-icmp accept', |
19 |
order: '10',
|
|
19 |
order: '10' |
|
20 | 20 |
) |
21 | 21 |
} |
22 | 22 |
end |
... | ... | |
32 | 32 |
it { |
33 | 33 |
is_expected.to contain_nftables__rule('default_in-accept_icmpv4_echo_request').with( |
34 | 34 |
content: 'ip protocol icmp icmp type echo-request limit rate 4/second accept', |
35 |
order: '10',
|
|
35 |
order: '10' |
|
36 | 36 |
) |
37 | 37 |
} |
38 | 38 |
it { |
39 | 39 |
is_expected.to contain_nftables__rule('default_in-accept_icmpv4_echo_reply').with( |
40 | 40 |
content: 'ip protocol icmp icmp type echo-reply accept', |
41 |
order: '10',
|
|
41 |
order: '10' |
|
42 | 42 |
) |
43 | 43 |
} |
44 | 44 |
it { |
45 | 45 |
is_expected.to contain_nftables__rule('default_in-accept_icmpv6').with( |
46 | 46 |
content: 'ip6 nexthdr ipv6-icmp accept', |
47 |
order: '10',
|
|
47 |
order: '10' |
|
48 | 48 |
) |
49 | 49 |
} |
50 | 50 |
end |
... | ... | |
61 | 61 |
it { |
62 | 62 |
is_expected.to contain_nftables__rule('default_in-accept_icmpv4_echo_request').with( |
63 | 63 |
content: 'ip protocol icmp icmp type echo-request limit rate 4/second accept', |
64 |
order: '10',
|
|
64 |
order: '10' |
|
65 | 65 |
) |
66 | 66 |
} |
67 | 67 |
it { |
68 | 68 |
is_expected.to contain_nftables__rule('default_in-accept_icmpv4_echo_reply').with( |
69 | 69 |
content: 'ip protocol icmp icmp type echo-reply accept', |
70 |
order: '10',
|
|
70 |
order: '10' |
|
71 | 71 |
) |
72 | 72 |
} |
73 | 73 |
it { |
74 | 74 |
is_expected.to contain_nftables__rule('default_in-accept_icmpv6_echo_reply').with( |
75 | 75 |
content: 'ip6 nexthdr ipv6-icmp icmpv6 type echo-reply accept', |
76 |
order: '10',
|
|
76 |
order: '10' |
|
77 | 77 |
) |
78 | 78 |
} |
79 | 79 |
it { |
80 | 80 |
is_expected.to contain_nftables__rule('default_in-accept_icmpv6_nd_router_advert').with( |
81 | 81 |
content: 'ip6 nexthdr ipv6-icmp icmpv6 type nd-router-advert accept', |
82 |
order: '10',
|
|
82 |
order: '10' |
|
83 | 83 |
) |
84 | 84 |
} |
85 | 85 |
end |
Formats disponibles : Unified diff