]> gitweb.fluxo.info Git - puppet-sshkeys_core.git/commitdiff
(MODULES-9578) Acceptance tests should remove the authorized_keys file.
authorRobert Vincent <robert.vincent@conning.com>
Tue, 23 Jul 2019 14:08:51 +0000 (10:08 -0400)
committerGabriel Nagy <gabriel.nagy@puppet.com>
Mon, 12 Aug 2019 11:54:13 +0000 (14:54 +0300)
spec/acceptance/tests/resource/ssh_authorized_key/create_spec.rb

index 5cf35fbb00ecfbd51008b4e33fb8dcf83c924ce9..75eba1e4a7551e460f0788b1315da5aec93f3f9e 100644 (file)
@@ -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