From: Robert Vincent Date: Tue, 23 Jul 2019 14:08:51 +0000 (-0400) Subject: (MODULES-9578) Acceptance tests should remove the authorized_keys file. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=d01b4e369d8bdd5a5f02c035eae74413887039b1;p=puppet-sshkeys_core.git (MODULES-9578) Acceptance tests should remove the authorized_keys file. --- diff --git a/spec/acceptance/tests/resource/ssh_authorized_key/create_spec.rb b/spec/acceptance/tests/resource/ssh_authorized_key/create_spec.rb index 5cf35fb..75eba1e 100644 --- a/spec/acceptance/tests/resource/ssh_authorized_key/create_spec.rb +++ b/spec/acceptance/tests/resource/ssh_authorized_key/create_spec.rb @@ -9,7 +9,7 @@ RSpec.context 'ssh_authorized_key: Create' do before(:each) do posix_agents.each do |agent| on(agent, "cp #{auth_keys} /tmp/auth_keys", acceptable_exit_codes: [0, 1]) - on(agent, "chown $LOGNAME #{auth_keys}") + on(agent, "rm -f $LOGNAME #{auth_keys}") end end