Révision fa92e118
Pet rubocop
spec/defines/set_spec.rb | ||
---|---|---|
21 | 21 |
is_expected.to contain_concat__fragment('nftables-inet-filter-set-my_set').with( |
22 | 22 |
target: 'nftables-inet-filter', |
23 | 23 |
content: %r{^ set my_set \{\n type ipv4_addr\n \}$}m, |
24 |
order: '10',
|
|
24 |
order: '10' |
|
25 | 25 |
) |
26 | 26 |
} |
27 | 27 |
end |
... | ... | |
72 | 72 |
is_expected.to contain_concat__fragment('nftables-inet-filter-set-my_set').with( |
73 | 73 |
target: 'nftables-inet-filter', |
74 | 74 |
content: %r{^ set my_set \{\n type ipv6_addr\n elements = \{ 2001:1458::/32, 2001:1458:1::/48 \}\n \}$}m, |
75 |
order: '10',
|
|
75 |
order: '10' |
|
76 | 76 |
) |
77 | 77 |
} |
78 | 78 |
end |
... | ... | |
92 | 92 |
is_expected.to contain_concat__fragment('nftables-inet-filter-set-my_set').with( |
93 | 93 |
target: 'nftables-inet-filter', |
94 | 94 |
content: %r{^ set my_set \{\n type ipv4_addr\n flags interval, timeout\n elements = \{ 192.168.0.1/24 \}\n auto-merge\n \}$}m, |
95 |
order: '10',
|
|
95 |
order: '10' |
|
96 | 96 |
) |
97 | 97 |
} |
98 | 98 |
end |
... | ... | |
111 | 111 |
is_expected.to contain_concat__fragment('nftables-inet-filter-set-my_set').with( |
112 | 112 |
target: 'nftables-inet-filter', |
113 | 113 |
content: %r{^ set my_set \{\n type ether_addr\n elements = \{ aa:bb:cc:dd:ee:ff \}\n policy memory\n \}$}m, |
114 |
order: '10',
|
|
114 |
order: '10' |
|
115 | 115 |
) |
116 | 116 |
} |
117 | 117 |
end |
... | ... | |
128 | 128 |
is_expected.to contain_concat__fragment('nftables-inet-filter-set-my_set').with( |
129 | 129 |
target: 'nftables-inet-filter', |
130 | 130 |
content: ' set my_set { }', |
131 |
order: '10',
|
|
131 |
order: '10' |
|
132 | 132 |
) |
133 | 133 |
} |
134 | 134 |
end |
... | ... | |
150 | 150 |
is_expected.to contain_concat__fragment('nftables-inet-filter-set-my-set').with( |
151 | 151 |
target: 'nftables-inet-filter', |
152 | 152 |
content: %r{^ set my-set \{\n type ether_addr\n \}$}m, |
153 |
order: '10',
|
|
153 |
order: '10' |
|
154 | 154 |
) |
155 | 155 |
} |
156 | 156 |
end |
... | ... | |
169 | 169 |
is_expected.to contain_concat__fragment('nftables-ip-nat-set-my_set').with( |
170 | 170 |
target: 'nftables-ip-nat', |
171 | 171 |
content: %r{^ set my_set \{\n type ipv6_addr\n elements = \{ 2001:1458::1, 2001:1458:1::2 \}\n \}$}m, |
172 |
order: '10',
|
|
172 |
order: '10' |
|
173 | 173 |
) |
174 | 174 |
} |
175 | 175 |
end |
... | ... | |
200 | 200 |
is_expected.to contain_concat__fragment('nftables-inet-filter-set-my_set').with( |
201 | 201 |
target: 'nftables-inet-filter', |
202 | 202 |
content: %r{^ set my_set \{\n type ipv6_addr\n elements = \{ 2001:1458::1, 2001:1458:1::2 \}\n \}$}m, |
203 |
order: '10',
|
|
203 |
order: '10' |
|
204 | 204 |
) |
205 | 205 |
is_expected.to contain_concat__fragment('nftables-ip-nat-set-my_set').with( |
206 | 206 |
target: 'nftables-ip-nat', |
207 | 207 |
content: %r{^ set my_set \{\n type ipv6_addr\n elements = \{ 2001:1458::1, 2001:1458:1::2 \}\n \}$}m, |
208 |
order: '10',
|
|
208 |
order: '10' |
|
209 | 209 |
) |
210 | 210 |
} |
211 | 211 |
end |
Formats disponibles : Unified diff