mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-11-10 04:50:34 +00:00
31 lines
645 B
Ruby
31 lines
645 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'fluentd::repo', :type => :class do
|
|
|
|
context 'when called with no parameters on osfamily Debian' do
|
|
let(:facts) {
|
|
{
|
|
:osfamily => 'Debian',
|
|
:lsbdistid => 'Ubuntu',
|
|
:operatingsystem => 'Ubuntu',
|
|
:lsbdistcodename => 'precise',
|
|
:architecture => 'amd64',
|
|
}
|
|
}
|
|
it {
|
|
should contain_class('fluentd::repo::apt')
|
|
}
|
|
end
|
|
|
|
context 'when called with no parameters on osfamily RedHat' do
|
|
let(:facts) {
|
|
{
|
|
:osfamily => 'RedHat',
|
|
}
|
|
}
|
|
it {
|
|
should contain_class('fluentd::repo::yum')
|
|
}
|
|
end
|
|
end
|