2015-12-04 11:29:06 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe 'fluentd::repo::apt', :type => :class do
|
|
|
|
let(:facts) {
|
|
|
|
{
|
|
|
|
:osfamily => 'Debian',
|
|
|
|
:lsbdistid => 'Ubuntu',
|
|
|
|
:operatingsystem => 'Ubuntu',
|
|
|
|
:lsbdistcodename => 'precise',
|
2016-01-22 23:32:29 +00:00
|
|
|
:architecture => 'amd64',
|
2015-12-04 11:29:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
describe 'when called with no parameters on Ubuntu' do
|
|
|
|
it {
|
|
|
|
should contain_class('apt')
|
|
|
|
should contain_apt__source('treasure-data').with({
|
2016-01-22 23:32:29 +00:00
|
|
|
'ensure' => 'present',
|
|
|
|
'location' => 'http://packages.treasuredata.com/2/ubuntu/precise',
|
|
|
|
'release' => 'precise',
|
|
|
|
'repos' => 'contrib',
|
|
|
|
'architecture' => 'amd64',
|
|
|
|
'key' => {
|
2015-12-04 11:48:17 +00:00
|
|
|
'id' => 'C901622B5EC4AF820C38AB861093DB45A12E206F',
|
2016-01-22 17:52:12 +00:00
|
|
|
'source' => 'http://packages.treasuredata.com/GPG-KEY-td-agent'
|
2015-12-04 11:29:06 +00:00
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|