From d01b4e369d8bdd5a5f02c035eae74413887039b1 Mon Sep 17 00:00:00 2001 From: Robert Vincent Date: Tue, 23 Jul 2019 10:08:51 -0400 Subject: (MODULES-9578) Acceptance tests should remove the authorized_keys file. --- spec/acceptance/tests/resource/ssh_authorized_key/create_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/acceptance/tests') 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 -- cgit v1.2.3