1
0
mirror of https://github.com/krislamo/puppet-fluentd synced 2024-11-13 21:50:34 +00:00
puppet-fluentd/spec/classes/fluentd_repo_apt_spec.rb

29 lines
783 B
Ruby
Raw Normal View History

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',
}
}
describe 'when called with no parameters on Ubuntu' do
it {
should contain_class('apt')
should contain_apt__source('treasure-data').with({
'ensure' => 'present',
2016-01-11 17:38:08 +00:00
'location' => 'https://packages.treasuredata.com/2/ubuntu/precise',
2015-12-04 11:29:06 +00:00
'release' => 'precise',
'repos' => 'contrib',
'key' => {
2015-12-04 11:48:17 +00:00
'id' => 'C901622B5EC4AF820C38AB861093DB45A12E206F',
2015-12-04 11:29:06 +00:00
'source' => 'https://packages.treasuredata.com/GPG-KEY-td-agent'
}
})
}
end
end