We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d11e72 commit 1e3a551Copy full SHA for 1e3a551
spec/defines/collect_spec.rb
@@ -19,6 +19,13 @@
19
is_expected.to contain_file('/etc/systemd/system/pe_databases-test.service').with_content(
20
%r{ExecStart=foo},
21
)
22
+
23
+ is_expected.to contain_service('pe_databases-test.service').that_notifies(
24
+ 'Exec[pe_databases_daemon_reload]',
25
+ )
26
+ is_expected.to contain_service('pe_databases-test.timer').that_subscribes_to(
27
+ 'File[/etc/systemd/system/pe_databases-test.timer]',
28
29
}
30
end
31
@@ -34,6 +41,8 @@
34
41
35
42
36
43
it {
44
+ is_expected.to contain_file('/etc/systemd/system/pe_databases-test.timer').with_ensure('absent')
45
+ is_expected.to contain_file('/etc/systemd/system/pe_databases-test.service').with_ensure('absent')
37
46
is_expected.to contain_service('pe_databases-test.timer').with_ensure('stopped')
38
47
39
48
0 commit comments