mirror of
				https://github.com/krislamo/puppet-fluentd
				synced 2025-11-03 18:28:34 +00:00 
			
		
		
		
	WIP: added first init.pp test
This commit is contained in:
		@@ -1,7 +1,21 @@
 | 
				
			|||||||
require 'spec_helper'
 | 
					require 'spec_helper'
 | 
				
			||||||
describe 'fluentd' do
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
  context 'with defaults for all parameters' do
 | 
					describe 'fluentd', :type => :class do
 | 
				
			||||||
    it { should contain_class('fluentd') }
 | 
					  let(:facts) {
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      :osfamily        => 'Debian',
 | 
				
			||||||
 | 
					      :lsbdistid       => 'Ubuntu',
 | 
				
			||||||
 | 
					      :operatingsystem => 'Ubuntu',
 | 
				
			||||||
 | 
					      :lsbdistcodename => 'precise',
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  describe 'when called with no parameters on Ubuntu' do
 | 
				
			||||||
 | 
					    it {
 | 
				
			||||||
 | 
					      should contain_class('fluentd::repo')
 | 
				
			||||||
 | 
					      should contain_class('fluentd::install')
 | 
				
			||||||
 | 
					      should contain_class('fluentd::config')
 | 
				
			||||||
 | 
					      should contain_class('fluentd::service')
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user