X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=spec%2Fclasses%2Fbackports_spec.rb;h=3c1f4385612f0b09a25a6da0d40ae6d8d8f4b2ce;hb=64f9c76a49cd73deb730cf468f54a9eda50a780b;hp=18f6337aefda1ca5bd1b30682011de5058f41fa2;hpb=7a192d7bea57990741398cb2fe120b51b7a3fd53;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/spec/classes/backports_spec.rb b/spec/classes/backports_spec.rb index 18f6337..3c1f438 100644 --- a/spec/classes/backports_spec.rb +++ b/spec/classes/backports_spec.rb @@ -19,7 +19,12 @@ describe 'apt::backports', :type => :class do 'repos' => 'main universe multiverse restricted', 'key' => '437D05B5', 'key_server' => 'pgp.mit.edu', - 'pin' => 500, + }) + } + + it { should contain_apt__pin('backports').with({ + 'release' => 'karmic-backports', + 'priority' => 500, }) } end @@ -48,7 +53,12 @@ describe 'apt::backports', :type => :class do 'repos' => 'main universe multiverse restricted', 'key' => '437D05B5', 'key_server' => 'pgp.mit.edu', - 'pin' => 200, + }) + } + + it { should contain_apt__pin('backports').with({ + 'release' => 'karmic-backports', + 'priority' => 200, }) } end @@ -69,7 +79,12 @@ describe 'apt::backports', :type => :class do 'repos' => 'main contrib non-free', 'key' => '46925553', 'key_server' => 'pgp.mit.edu', - 'pin' => 200, + }) + } + + it { should contain_apt__pin('backports').with({ + 'release' => 'squeeze-backports', + 'priority' => 200, }) } end @@ -90,7 +105,12 @@ describe 'apt::backports', :type => :class do 'repos' => 'main contrib non-free', 'key' => '46925553', 'key_server' => 'pgp.mit.edu', - 'pin' => 200, + }) + } + + it { should contain_apt__pin('backports').with({ + 'release' => 'wheezy-backports', + 'priority' => 200, }) } end @@ -111,7 +131,12 @@ describe 'apt::backports', :type => :class do 'repos' => 'main universe multiverse restricted', 'key' => '437D05B5', 'key_server' => 'pgp.mit.edu', - 'pin' => 200, + }) + } + + it { should contain_apt__pin('backports').with({ + 'release' => 'trusty-backports', + 'priority' => 200, }) } end @@ -140,7 +165,12 @@ describe 'apt::backports', :type => :class do 'repos' => 'main contrib non-free', 'key' => '46925553', 'key_server' => 'pgp.mit.edu', - 'pin' => 200, + }) + } + + it { should contain_apt__pin('backports').with({ + 'release' => 'squeeze-backports', + 'priority' => 200, }) } end