Commit e845d48f authored by Andrejs Cunskis's avatar Andrejs Cunskis

Merge branch 'acunskis-fix-user-deletion' into 'master'

E2E: Move user deletion to ensure block in migration specs

See merge request gitlab-org/gitlab!81100
parents 25f90234 d1c336b9
...@@ -55,9 +55,9 @@ module QA ...@@ -55,9 +55,9 @@ module QA
after do |example| after do |example|
# Checking for failures in the test currently makes test very flaky due to catching unrelated failures # Checking for failures in the test currently makes test very flaky due to catching unrelated failures
# Just log in case of failure until cause of network errors is found # Log failures for easier debugging
# See: https://gitlab.com/gitlab-org/gitlab/-/issues/346500 Runtime::Logger.warn("Import failures: #{import_failures}") if example.exception && !import_failures.empty?
Runtime::Logger.warn(import_failures) if example.exception && !import_failures.empty? ensure
user.remove_via_api! user.remove_via_api!
end end
......
...@@ -75,13 +75,13 @@ module QA ...@@ -75,13 +75,13 @@ module QA
end end
after do |example| after do |example|
# Checking for failures in the test currently makes test very flaky # Checking for failures in the test currently makes test very flaky due to catching unrelated failures
# Just log in case of failure until cause of network errors is found # Log failures for easier debugging
Runtime::Logger.warn("Import failures: #{import_failures}") if example.exception && !import_failures.empty? Runtime::Logger.warn("Import failures: #{import_failures}") if example.exception && !import_failures.empty?
user.remove_via_api!
ensure ensure
Runtime::Feature.disable(:bulk_import_projects) Runtime::Feature.disable(:bulk_import_projects)
user.remove_via_api!
end end
end end
end end
...@@ -109,10 +109,9 @@ module QA ...@@ -109,10 +109,9 @@ module QA
after do |example| after do |example|
# Checking for failures in the test currently makes test very flaky due to catching unrelated failures # Checking for failures in the test currently makes test very flaky due to catching unrelated failures
# Just log in case of failure until cause of network errors is found # Log failures for easier debugging
# See: https://gitlab.com/gitlab-org/gitlab/-/issues/346500 Runtime::Logger.warn("Import failures: #{import_failures}") if example.exception && !import_failures.empty?
Runtime::Logger.warn(import_failures) if example.exception && !import_failures.empty? ensure
user.remove_via_api! user.remove_via_api!
author.remove_via_api! author.remove_via_api!
end end
......
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