1 require 'spec_helper_acceptance'
7 shell('apt-key del 4BD6EC30', :acceptable_exit_codes => [0,1,2])
8 shell('apt-key del D50582E6', :acceptable_exit_codes => [0,1,2])
13 it 'should work with no errors' do
16 apt::key { 'puppetlabs':
18 key_server => 'pgp.mit.edu',
23 key_source => 'http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key',
27 apply_manifest(pp, :catch_failures => true)
30 describe 'keys should exist' do
31 it 'finds puppetlabs key' do
32 shell('apt-key list | grep 4BD6EC30') do |r|
33 expect(r.exit_code).to be_zero
36 it 'finds jenkins key' do
37 shell('apt-key list | grep D50582E6') do |r|
38 expect(r.exit_code).to be_zero
46 shell('apt-key del 4BD6EC30')
47 shell('apt-key del D50582E6')