mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-12-16 05:10:36 +00:00
added fluentd_repo_apt_spec
This commit is contained in:
parent
ef70744f8c
commit
ea344aa9ad
28
spec/classes/fluentd_repo_apt_spec.rb
Normal file
28
spec/classes/fluentd_repo_apt_spec.rb
Normal file
@ -0,0 +1,28 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe 'fluentd::repo::apt', :type => :class do
|
||||
let(:facts) {
|
||||
{
|
||||
:osfamily => 'Debian',
|
||||
:lsbdistid => 'Ubuntu',
|
||||
:operatingsystem => 'Ubuntu',
|
||||
:lsbdistcodename => 'precise',
|
||||
}
|
||||
}
|
||||
|
||||
describe 'when called with no parameters on Ubuntu' do
|
||||
it {
|
||||
should contain_class('apt')
|
||||
should contain_apt__source('treasure-data').with({
|
||||
'ensure' => 'present',
|
||||
'location' => 'http://packages.treasuredata.com/2/ubuntu/precise',
|
||||
'release' => 'precise',
|
||||
'repos' => 'contrib',
|
||||
'key' => {
|
||||
'id' => '1093DB45A12E206F',
|
||||
'source' => 'https://packages.treasuredata.com/GPG-KEY-td-agent'
|
||||
}
|
||||
})
|
||||
}
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user