File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 19
19
is_expected . to contain_file ( '/etc/systemd/system/pe_databases-test.service' ) . with_content (
20
20
%r{ExecStart=foo} ,
21
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
+ )
22
29
}
23
30
end
24
31
34
41
end
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
end
You can’t perform that action at this time.
0 commit comments