blob: 27297db0669d2dac360efceffff48bdd74b174d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
require 'spec_helper'
describe 'pixelated::apt::preferences' do
let(:facts) do
{
:operatingsystem => 'Debian',
:lsbdistid => 'Debian',
:lsbdistcodename => 'jessie',
}
end
let(:pre_condition) { [
"class apt {}",
"define apt::sources_list($content='deb url') {}",
"define apt::preferences_snippet($release='stable',$priority='999',$pin='release o=Debian',$package='*',$ensure='present') {}",
] }
%w( soledad-server soledad-client soledad-common leap-keymanager leap-auth).each do | file |
it { should contain_file("/etc/apt/preferences.d/#{file}").with_ensure('absent')}
end
%w( python-urllib3 python-requests python-six).each do | package |
it { should contain_apt__preferences_snippet("#{package}").with_release(/jessie/) }
end
end
|