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