2012-01-23 22:08:00 +01:00
|
|
|
require 'spec_helper'
|
|
|
|
describe 'apt::release', :type => :class do
|
2014-02-24 23:31:16 +01:00
|
|
|
let(:facts) { { :lsbdistid => 'Debian' } }
|
2012-01-23 22:08:00 +01:00
|
|
|
let (:title) { 'my_package' }
|
|
|
|
|
|
|
|
let :param_set do
|
|
|
|
{ :release_id => 'precise' }
|
|
|
|
end
|
|
|
|
|
|
|
|
let (:params) { param_set }
|
|
|
|
|
2013-12-06 01:40:10 +01:00
|
|
|
it { should contain_class("apt::params") }
|
2012-01-23 22:08:00 +01:00
|
|
|
|
|
|
|
it {
|
2012-02-04 02:24:09 +01:00
|
|
|
should contain_file("/etc/apt/apt.conf.d/01release").with({
|
2012-03-21 14:20:13 +01:00
|
|
|
"mode" => "0644",
|
2012-02-04 02:24:09 +01:00
|
|
|
"owner" => "root",
|
|
|
|
"group" => "root",
|
|
|
|
"content" => "APT::Default-Release \"#{param_set[:release_id]}\";"
|
|
|
|
})
|
2012-01-23 22:08:00 +01:00
|
|
|
}
|
|
|
|
end
|
|
|
|
|