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 1919 is_expected . to contain_file ( '/etc/systemd/system/pe_databases-test.service' ) . with_content (
2020 %r{ExecStart=foo} ,
2121 )
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+ )
2229 }
2330 end
2431
3441 end
3542
3643 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' )
3746 is_expected . to contain_service ( 'pe_databases-test.timer' ) . with_ensure ( 'stopped' )
3847 }
3948 end
You can’t perform that action at this time.
0 commit comments