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',
24 describe "when turning on backports for debian squeeze" do
28 'lsbdistcodename' => 'Squeeze',
29 'lsbdistid' => 'Debian',
33 it { should contain_apt__source('backports.list').with({
34 'location' => 'http://backports.debian.org/debian-backports',
35 'release' => 'squeeze-backports',
36 'repos' => 'main contrib non-free',
38 'key_server' => 'pgp.mit.edu',
44 describe "when turning on backports for debian squeeze but using your own mirror" do
48 'lsbdistcodename' => 'Squeeze',
49 'lsbdistid' => 'Debian'
54 'http://mirrors.example.com/debian-backports'
58 { 'location' => location }
61 it { should contain_apt__source('backports.list').with({
62 'location' => location,
63 'release' => 'squeeze-backports',
64 'repos' => 'main contrib non-free',
66 'key_server' => 'pgp.mit.edu',