mirror of
https://github.com/krislamo/puppet-rsnapshot
synced 2024-12-16 09:40:35 +00:00
remove cron test, add file content match
This commit is contained in:
parent
efa6ef8808
commit
3ae826a0e0
@ -41,7 +41,7 @@ describe 'rsnapshot' do
|
|||||||
end
|
end
|
||||||
describe file('/etc/rsnapshot/example.com.rsnapshot.conf') do
|
describe file('/etc/rsnapshot/example.com.rsnapshot.conf') do
|
||||||
it { is_expected.to exist }
|
it { is_expected.to exist }
|
||||||
its(:content) { is_expected.to match 'backup' }
|
its(:content) { is_expected.to match 'backup\t/var/\t./' }
|
||||||
end
|
end
|
||||||
describe file('/etc/rsnapshot.conf') do
|
describe file('/etc/rsnapshot.conf') do
|
||||||
it { is_expected.to exist }
|
it { is_expected.to exist }
|
||||||
@ -56,9 +56,5 @@ describe 'rsnapshot' do
|
|||||||
it { is_expected.to exist }
|
it { is_expected.to exist }
|
||||||
its(:content) { is_expected.to match 'example.com' }
|
its(:content) { is_expected.to match 'example.com' }
|
||||||
end
|
end
|
||||||
describe cron do
|
|
||||||
its(:table) { should match /.*\/etc\/rsnapshot\/localhost.rsnapshot.conf daily.*/ }
|
|
||||||
its(:table) { should match /.*\/etc\/rsnapshot\/example\.com\.rsnapshot\.conf daily.*/ }
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user