mirror of
https://github.com/krislamo/puppet-rsnapshot
synced 2024-12-16 09:40:35 +00:00
add test for tmpfiles.d dir
This commit is contained in:
parent
ab20bea159
commit
43cd819749
@ -28,6 +28,9 @@ describe 'rsnapshot' do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
context 'files provisioned' do
|
context 'files provisioned' do
|
||||||
|
describe file('/etc/tmpfiles.d') do
|
||||||
|
it { should be_directory }
|
||||||
|
end
|
||||||
describe file('/etc/tmpfiles.d/rsnapshot.conf') do
|
describe file('/etc/tmpfiles.d/rsnapshot.conf') do
|
||||||
it { is_expected.to exist }
|
it { is_expected.to exist }
|
||||||
its(:content) { is_expected.to match 'D /var/run/rsnapshot 0755 root root -' }
|
its(:content) { is_expected.to match 'D /var/run/rsnapshot 0755 root root -' }
|
||||||
|
Loading…
Reference in New Issue
Block a user