mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-12-16 13:20:35 +00:00
use rspec-puppet-facts for fluentd_repo_yum_spec
This commit is contained in:
parent
d7f6d91a11
commit
b34c7dc4e4
@ -1,13 +1,16 @@
|
|||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
|
|
||||||
describe 'fluentd::repo::yum', :type => :class do
|
describe 'fluentd::repo::yum', :type => :class do
|
||||||
let(:facts) {
|
on_supported_os.each do |os, facts|
|
||||||
{
|
context "on #{os}" do
|
||||||
:osfamily => 'RedHat',
|
let :facts do
|
||||||
}
|
facts
|
||||||
}
|
end
|
||||||
|
|
||||||
describe 'when called with no parameters on RedHat' do
|
|
||||||
|
describe 'when called with no parameters' do
|
||||||
|
case facts[:osfamily]
|
||||||
|
when 'RedHat'
|
||||||
it {
|
it {
|
||||||
should contain_yumrepo('treasure-data').with({
|
should contain_yumrepo('treasure-data').with({
|
||||||
'ensure' => 'present',
|
'ensure' => 'present',
|
||||||
@ -24,4 +27,7 @@ describe 'fluentd::repo::yum', :type => :class do
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user