mirror of
				https://github.com/krislamo/puppet-rsnapshot
				synced 2025-11-04 01:48:33 +00:00 
			
		
		
		
	add some tests
This commit is contained in:
		@@ -32,6 +32,9 @@ describe 'rsnapshot' do
 | 
			
		||||
      it { is_expected.to exist }
 | 
			
		||||
      its(:content) { is_expected.to match 'D /var/run/rsnapshot 0755 root root -' }
 | 
			
		||||
    end
 | 
			
		||||
    describe file('/var/run/rsnapshot') do
 | 
			
		||||
      it { should be_directory }
 | 
			
		||||
    end
 | 
			
		||||
    describe file('/etc/rsnapshot/localhost.rsnapshot.conf') do
 | 
			
		||||
      it { is_expected.to exist }
 | 
			
		||||
      its(:content) { is_expected.to match 'backup' }
 | 
			
		||||
@@ -53,5 +56,9 @@ describe 'rsnapshot' do
 | 
			
		||||
      it { is_expected.to exist }
 | 
			
		||||
      its(:content) { is_expected.to match 'example.com' }
 | 
			
		||||
    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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user