2015-12-03 18:28:31 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe 'fluentd::repo', :type => :class do
|
2017-08-14 15:55:27 +00:00
|
|
|
on_supported_os.each do |os, facts|
|
|
|
|
context "on #{os}" do
|
|
|
|
let :facts do
|
|
|
|
facts
|
|
|
|
end
|
2015-12-03 18:28:31 +00:00
|
|
|
|
2017-08-14 15:55:27 +00:00
|
|
|
describe 'when called with no parameters' do
|
|
|
|
case facts[:osfamily]
|
|
|
|
when 'Debian'
|
|
|
|
it { is_expected.to contain_class('fluentd::repo::apt') }
|
|
|
|
when 'RedHat'
|
|
|
|
it { is_expected.to contain_class('fluentd::repo::yum') }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2016-01-27 11:45:27 +00:00
|
|
|
end
|
2015-12-03 18:28:31 +00:00
|
|
|
end
|
2017-08-14 15:55:27 +00:00
|
|
|
|