Skip to content

Commit 1a53d06

Browse files
Merge pull request #8847 from ciprianbadescu/PUP-11320/acceptance-test-fix
(PUP-11320) acceptance test fix
2 parents 3bdba92 + 5e48ccf commit 1a53d06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

acceptance/tests/resource/user/should_manage_purge_ssh_keys.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
name = "usr#{rand(9999).to_i}"
99

1010
agents.each do |agent|
11+
home = agent.tmpdir(name)
12+
authorized_keys_path = "#{home}/.ssh/authorized_keys"
13+
1114
teardown do
1215
agent.rm_rf(home)
1316
on(agent, puppet_resource('user', "#{name}", 'ensure=absent'))
1417
end
1518

16-
home = agent.tmpdir(name)
17-
authorized_keys_path = "#{home}/.ssh/authorized_keys"
18-
1919
step "create user #{name} with ssh keys purged" do
2020
apply_manifest_on(agent, <<-MANIFEST, { :catch_failures => true, :debug => true }) do |result|
2121
user {'#{name}':

0 commit comments

Comments
 (0)