Skip to content

Commit 1abcb69

Browse files
committed
Added file location just an extra check
1 parent dedcfc2 commit 1abcb69

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spec/acceptance/apt_keyring_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
require 'spec_helper_acceptance'
44

5+
PUPPETLABS_FILE_CHECK_COMMAND = 'ls /etc/apt/keyrings | grep \'puppetlabs-keyring.gpg\''
6+
57
describe 'apt::keyring' do
68
context 'when using default values and source specified explicitly' do
79
let(:keyring_pp) do
@@ -17,5 +19,9 @@
1719
idempotent_apply(keyring_pp)
1820
end
1921
end
22+
23+
it 'expects file to be present at default location' do
24+
run_shell(PUPPETLABS_FILE_CHECK_COMMAND.to_s)
25+
end
2026
end
2127
end

0 commit comments

Comments
 (0)