1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2024-11-13 21:50:34 +00:00
puppet-fluentd/spec/classes/fluentd_spec.rb

37 lines
792 B
Ruby
Raw Normal View History

2015-11-30 11:23:28 +00:00
require 'spec_helper'
2015-12-03 16:53:01 +00:00
describe 'fluentd', :type => :class do
shared_examples 'when called with no parameters' do
2015-12-03 16:53:01 +00:00
it {
should contain_class('fluentd::repo')
should contain_class('fluentd::install')
should contain_class('fluentd::config')
should contain_class('fluentd::service')
}
2015-11-30 11:23:28 +00:00
end
context 'when osfamily is Debian' do
let(:facts) {
{
:osfamily => 'Debian',
:lsbdistid => 'Ubuntu',
:operatingsystem => 'Ubuntu',
:lsbdistcodename => 'precise',
}
}
include_examples 'when called with no parameters'
end
context 'when osfamily is RedHat' do
let(:facts) {
{
:osfamily => 'RedHat',
}
}
include_examples 'when called with no parameters'
end
2015-11-30 11:23:28 +00:00
end