Skip to content

Commit 072b412

Browse files
committed
Deleting the file
1 parent 1abcb69 commit 072b412

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

spec/acceptance/apt_keyring_spec.rb

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,13 @@
22

33
require 'spec_helper_acceptance'
44

5-
PUPPETLABS_FILE_CHECK_COMMAND = 'ls /etc/apt/keyrings | grep \'puppetlabs-keyring.gpg\''
6-
75
describe '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
@@ -21,7 +17,7 @@
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
2723
end

0 commit comments

Comments
 (0)