blob: 8b071f1ed063ec9f1de0740f8a394a1667997a65 (
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
27
28
29
30
31
|
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') {}",
] }
describe 'pixelated packages' do
it { should contain_apt__preferences_snippet("pixelated").with_pin('origin "packages.pixelated-project.org"')}
it { should contain_apt__preferences_snippet("pixelated").with_priority('1000')}
end
%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
|