Révision 3016d428
Change exec title
spec/classes/nftables_spec.rb | ||
---|---|---|
131 | 131 |
} |
132 | 132 |
|
133 | 133 |
it { |
134 |
expect(subject).not_to contain_exec('nftables_running_state_check')
|
|
134 |
expect(subject).not_to contain_exec('nftables_memory_state_check')
|
|
135 | 135 |
} |
136 | 136 |
|
137 | 137 |
it { |
... | ... | |
320 | 320 |
|
321 | 321 |
it { is_expected.not_to contain_file('/foo/bar') } |
322 | 322 |
it { |
323 |
is_expected.to contain_exec('nftables_running_state_check').with(
|
|
323 |
is_expected.to contain_exec('nftables_memory_state_check').with(
|
|
324 | 324 |
command: %r{^echo "reloading nftables"$}, |
325 | 325 |
notify: 'Service[nftables]', |
326 | 326 |
unless: %r{^/usr/bin/test -s /foo/bar -a "\$\(nft -s list ruleset \| sha1sum\)" = "\$\(cat /foo/bar\)"$} |
Formats disponibles : Unified diff