mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-11-10 04:50:34 +00:00
added spec test for fluentd::repo::yum
This commit is contained in:
parent
3ef403cf65
commit
be1a555591
27
spec/classes/fluentd_repo_yum_spec.rb
Normal file
27
spec/classes/fluentd_repo_yum_spec.rb
Normal file
@ -0,0 +1,27 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe 'fluentd::repo::yum', :type => :class do
|
||||
let(:facts) {
|
||||
{
|
||||
:osfamily => 'RedHat',
|
||||
}
|
||||
}
|
||||
|
||||
describe 'when called with no parameters on RedHat' do
|
||||
it {
|
||||
should contain_yumrepo('treasure-data').with({
|
||||
'ensure' => 'present',
|
||||
'baseurl' => 'https://packages.treasuredata.com/2/redhat/$releasever/$basearch',
|
||||
'descr' => 'TreasureData',
|
||||
'enabled' => '1',
|
||||
'gpgcheck' => '1'
|
||||
}).that_notifies('Exec[add GPG key]')
|
||||
|
||||
should contain_exec('add GPG key').with({
|
||||
'command' => 'rpm --import https://packages.treasuredata.com/GPG-KEY-td-agent',
|
||||
'path' => '/bin:/usr/bin/',
|
||||
'refreshonly' => 'true'
|
||||
})
|
||||
}
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user