X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=spec%2Facceptance%2Fbackports_spec.rb;h=78f21fd588a86ea13e343bc0709b08a69925fe21;hb=9e789255c84eec71727ff1dfb05cec63258ac0d1;hp=6d3f7f0e68713dfbf7d0c682e3a25d1730f132db;hpb=4c9174e51728503c99d2ce224b5443a3c4286df3;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/spec/acceptance/backports_spec.rb b/spec/acceptance/backports_spec.rb index 6d3f7f0..78f21fd 100644 --- a/spec/acceptance/backports_spec.rb +++ b/spec/acceptance/backports_spec.rb @@ -49,6 +49,20 @@ describe 'apt::backports class', :unless => UNSUPPORTED_PLATFORMS.include?(fact( end end + context 'pin_priority' do + it 'should work with no errors' do + pp = <<-EOS + class { 'apt::backports': pin_priority => 500, } + EOS + + apply_manifest(pp, :catch_failures => true) + end + describe file('/etc/apt/preferences.d/backports.pref') do + it { should be_file } + it { should contain "Pin-Priority: 500" } + end + end + context 'reset' do it 'deletes backport files' do shell('rm -rf /etc/apt/sources.list.d/backports.list')