2 describe 'apt::backports', :type => :class do
4 describe 'when turning on backports for ubuntu karmic' do
8 'lsbdistcodename' => 'Karmic',
9 'lsbdistid' => 'Ubuntu'
13 it { should contain_apt__source('backports.list').with({
14 'location' => 'http://old-releases.ubuntu.com/ubuntu',
15 'release' => 'karmic-backports',
16 'repos' => 'universe multiverse restricted',
18 'key_server' => 'pgp.mit.edu',
20 'notify' => 'Exec[apt_update]'
25 describe "when turning on backports for debian squeeze" do
29 'lsbdistcodename' => 'Squeeze',
30 'lsbdistid' => 'Debian',
34 it { should contain_apt__source('backports.list').with({
35 'location' => 'http://backports.debian.org/debian-backports',
36 'release' => 'squeeze-backports',
37 'repos' => 'main contrib non-free',
39 'key_server' => 'pgp.mit.edu',
41 'notify' => 'Exec[apt_update]'
46 describe "when turning on backports for debian squeeze but using your own mirror" do
50 'lsbdistcodename' => 'Squeeze',
51 'lsbdistid' => 'Debian'
56 'http://mirrors.example.com/debian-backports'
60 { 'location' => location }
63 it { should contain_apt__source('backports.list').with({
64 'location' => location,
65 'release' => 'squeeze-backports',
66 'repos' => 'main contrib non-free',
68 'key_server' => 'pgp.mit.edu',
70 'notify' => 'Exec[apt_update]'