Révision 0b2ccdda
Fix typos
spec/classes/nftables_spec.rb | ||
---|---|---|
135 | 135 |
} |
136 | 136 |
|
137 | 137 |
it { |
138 |
expect(subject).not_to contain_exec('generate_ntfables_hash')
|
|
138 |
expect(subject).not_to contain_exec('nftables_generate_hash')
|
|
139 | 139 |
} |
140 | 140 |
|
141 | 141 |
it { |
... | ... | |
323 | 323 |
is_expected.to contain_exec('nftables_running_state_check').with( |
324 | 324 |
command: %r{^echo "reloading nftables"$}, |
325 | 325 |
notify: 'Service[nftables]', |
326 |
unless: %r{^/usr/bin/test -s /var/tmp/nftables_hash -a "\$\(nft -s list ruleset \| sha1sum\)" = "\$\(cat /foo/bar\)"$}
|
|
326 |
unless: %r{^/usr/bin/test -s /foo/bar -a "\$\(nft -s list ruleset \| sha1sum\)" = "\$\(cat /foo/bar\)"$}
|
|
327 | 327 |
) |
328 | 328 |
} |
329 | 329 |
it { |
330 |
is_expected.to contain_exec('generate_nftables_hash').with(
|
|
330 |
is_expected.to contain_exec('nftables_generate_hash').with(
|
|
331 | 331 |
command: %r{^nft -s list ruleset \| sha1sum > /foo/bar$}, |
332 | 332 |
subscribe: 'Service[nftables]', |
333 | 333 |
refreshonly: true, |
Formats disponibles : Unified diff