File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change 22
33require 'spec_helper_acceptance'
44
5- PUPPETLABS_FILE_CHECK_COMMAND = 'ls /etc/apt/keyrings | grep \'puppetlabs-keyring.gpg\''
6-
75describe 'apt::keyring' do
86 context 'when using default values and source specified explicitly' do
9- let ( :keyring_pp ) do
10- <<-MANIFEST
11- apt::keyring { 'puppetlabs-keyring.gpg':
12- source => 'https://apt.puppetlabs.com/keyring.gpg',
13- }
14- MANIFEST
15- end
7+ keyring_pp = <<-MANIFEST
8+ apt::keyring { 'puppetlabs-keyring.gpg':
9+ source => 'https://apt.puppetlabs.com/keyring.gpg',
10+ }
11+ MANIFEST
1612
1713 it 'applies idempotently' do
1814 retry_on_error_matching do
2117 end
2218
2319 it 'expects file to be present at default location' do
24- run_shell ( PUPPETLABS_FILE_CHECK_COMMAND . to_s )
20+ run_shell ( 'rm /etc/apt/keyrings/puppetlabs-keyring.gpg' )
2521 end
2622 end
2723end
You can’t perform that action at this time.
0 commit comments