Commit 12f25f34 authored by Ramya Authappan's avatar Ramya Authappan

Merge branch 'ml-delete-netrc-after-test' into 'master'

Delete the .netrc file created during a QA test

See merge request gitlab-org/gitlab!43233
parents 39093252 86314668
......@@ -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