1 require 'spec_helper_system'
7 shell('apt-key del 4BD6EC30')
8 shell('apt-key del D50582E6')
13 it 'should work with no errors' do
15 apt::key { 'puppetlabs':
17 key_server => 'pgp.mit.edu',
22 key_source => 'http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key',
26 puppet_apply(pp) do |r|
27 r.exit_code.should_not == 1
31 describe 'keys should exist' do
32 it 'finds puppetlabs key' do
33 shell('apt-key list | grep 4BD6EC30') do |r|
34 r.exit_code.should be_zero
37 it 'finds jenkins key' do
38 shell('apt-key list | grep D50582E6') do |r|
39 r.exit_code.should be_zero
47 shell('apt-key del 4BD6EC30')
48 shell('apt-key del D50582E6')