mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-11-14 14:00:36 +00:00
added fluentd_install_spec.rb
This commit is contained in:
parent
b21e606acb
commit
54431b8542
22
spec/classes/fluentd_install_spec.rb
Normal file
22
spec/classes/fluentd_install_spec.rb
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
require 'spec_helper'
|
||||||
|
|
||||||
|
describe 'fluentd::install', :type => :class do
|
||||||
|
let(:facts) {
|
||||||
|
{
|
||||||
|
:osfamily => 'Debian',
|
||||||
|
:lsbdistid => 'Ubuntu',
|
||||||
|
:operatingsystem => 'Ubuntu',
|
||||||
|
:lsbdistcodename => 'precise',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
describe 'when called with no parameters on Ubuntu' do
|
||||||
|
it {
|
||||||
|
should contain_package('fluentd').with({
|
||||||
|
'ensure' => 'installed',
|
||||||
|
'name' => 'td-agent',
|
||||||
|
'install_options' => []
|
||||||
|
})
|
||||||
|
}
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user