1
0
mirror of https://github.com/krislamo/puppet-rsnapshot synced 2024-09-19 17:10:34 +00:00

add test for tmpfiles.d dir

This commit is contained in:
Norbert Varzariu 2017-04-24 20:46:04 +02:00
parent ab20bea159
commit 43cd819749

View File

@ -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 -' }