Commit 86314668 authored by Mark Lapierre's avatar Mark Lapierre

Delete the .netrc file created during a QA test

So that subsequent tests don't try to use the logins added in that test
parent 932cad3a
......@@ -213,6 +213,10 @@ module QA
run("cat #{file}").to_s
end
def delete_netrc
File.delete(netrc_file_path) if File.exist?(netrc_file_path)
end
private
attr_reader :uri, :username, :password, :known_hosts_file,
......
......@@ -28,6 +28,13 @@ module QA
end
end
after do
# Delete the .netrc file created during this test so that subsequent tests don't try to use the logins
Git::Repository.perform do |repository|
repository.delete_netrc
end
end
it 'download archives of each user project then check they are different', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/427' do
archive_checksums = {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment