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
16 apt::key { 'puppetlabs':
18 key_server => 'pgp.mit.edu',
23 key_source => 'http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key',
27 puppet_apply(pp) do |r|
28 r.exit_code.should_not == 1
32 describe 'keys should exist' do
33 it 'finds puppetlabs key' do
34 shell('apt-key list | grep 4BD6EC30') do |r|
35 r.exit_code.should be_zero
38 it 'finds jenkins key' do
39 shell('apt-key list | grep D50582E6') do |r|
40 r.exit_code.should be_zero
48 shell('apt-key del 4BD6EC30')
49 shell('apt-key del D50582E6')