aboutsummaryrefslogtreecommitdiff
path: root/spec/acceptance/tests
diff options
context:
space:
mode:
authorRobert Vincent <robert.vincent@conning.com>2019-07-23 10:08:51 -0400
committerGabriel Nagy <gabriel.nagy@puppet.com>2019-08-12 14:54:13 +0300
commitd01b4e369d8bdd5a5f02c035eae74413887039b1 (patch)
tree4c4fb58563f219cf687643919f6c48a58890a977 /spec/acceptance/tests
parent0e4857be537f100cc952948bac6710f2854c82a6 (diff)
downloadpuppet-sshkeys_core-d01b4e369d8bdd5a5f02c035eae74413887039b1.tar.gz
puppet-sshkeys_core-d01b4e369d8bdd5a5f02c035eae74413887039b1.tar.bz2
(MODULES-9578) Acceptance tests should remove the authorized_keys file.
Diffstat (limited to 'spec/acceptance/tests')
-rw-r--r--spec/acceptance/tests/resource/ssh_authorized_key/create_spec.rb2
1 files changed, 1 insertions, 1 deletions
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