mirror of
https://github.com/krislamo/puppet-fluentd
synced 2024-09-20 04:30:36 +00:00
9eb93da056
- use beaker/puppet_install_helper to install puppet - installed dependency modules like they are listed in the metadata.json - changed apt repo source from https to http, https produced ssl errors under certain ruby versions and needs additional packages on some systems and the packages are signed anyways
29 lines
781 B
Ruby
29 lines
781 B
Ruby
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' => 'C901622B5EC4AF820C38AB861093DB45A12E206F',
|
|
'source' => 'http://packages.treasuredata.com/GPG-KEY-td-agent'
|
|
}
|
|
})
|
|
}
|
|
end
|
|
end
|