Commit 07a785af authored by Walmyr Lima e Silva Filho's avatar Walmyr Lima e Silva Filho

Merge branch 'fix-geo-spec-39270' into 'master'

Fix flaky Geo database delete replication spec

Closes #39270

See merge request gitlab-org/gitlab!21506
parents 39c2fae1 cb734461
......@@ -7,17 +7,20 @@ module QA
deleted_project_id = nil
before do
Runtime::Browser.visit(:geo_primary, QA::Page::Main::Login) do
Page::Main::Login.perform(&:sign_in_using_credentials)
project_to_delete = Resource::Project.fabricate_via_api! do |project|
project.name = 'delete-this-project'
project.description = 'Geo project to be deleted'
end
# Need to have at least one project to remain after project deletion,
# to make sure dashboard shows the project list
Resource::Project.fabricate_via_api! do |project|
project.name = 'keep-this-project'
project.description = 'Geo project to keep'
end
deleted_project_name = project_to_delete.name
deleted_project_id = project_to_delete.id
project_to_delete = Resource::Project.fabricate_via_api! do |project|
project.name = 'delete-this-project'
project.description = 'Geo project to be deleted'
end
deleted_project_name = project_to_delete.name
deleted_project_id = project_to_delete.id
end
it 'replicates deletion of a project to secondary node' do
......
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