2015-12-03 18:28:31 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe 'fluentd::repo', :type => :class do
|
|
|
|
|
2016-01-27 11:45:27 +00:00
|
|
|
context 'when called with no parameters on osfamily Debian' do
|
|
|
|
let(:facts) {
|
|
|
|
{
|
|
|
|
:osfamily => 'Debian',
|
|
|
|
:lsbdistid => 'Ubuntu',
|
|
|
|
:operatingsystem => 'Ubuntu',
|
|
|
|
:lsbdistcodename => 'precise',
|
2016-05-12 20:31:52 +00:00
|
|
|
:architecture => 'amd64',
|
2016-01-27 11:45:27 +00:00
|
|
|
}
|
|
|
|
}
|
2015-12-03 18:28:31 +00:00
|
|
|
it {
|
|
|
|
should contain_class('fluentd::repo::apt')
|
|
|
|
}
|
|
|
|
end
|
2016-01-27 11:45:27 +00:00
|
|
|
|
|
|
|
context 'when called with no parameters on osfamily RedHat' do
|
|
|
|
let(:facts) {
|
|
|
|
{
|
|
|
|
:osfamily => 'RedHat',
|
|
|
|
}
|
|
|
|
}
|
|
|
|
it {
|
|
|
|
should contain_class('fluentd::repo::yum')
|
|
|
|
}
|
|
|
|
end
|
2015-12-03 18:28:31 +00:00
|
|
|
end
|