Commit 75a76c7e authored by John McDonnell's avatar John McDonnell Committed by Sanad Liaquat

Add apply flag to praefect remove repo e2e

parent 3709b852
...@@ -414,7 +414,7 @@ module QA ...@@ -414,7 +414,7 @@ module QA
end end
def remove_tracked_praefect_repository(relative_path, virtual_storage) def remove_tracked_praefect_repository(relative_path, virtual_storage)
cmd = "gitlab-ctl praefect remove-repository --repository-relative-path #{relative_path} --virtual-storage-name #{virtual_storage}" cmd = "gitlab-ctl praefect remove-repository --repository-relative-path #{relative_path} --virtual-storage-name #{virtual_storage} --apply"
shell "docker exec #{@praefect} bash -c '#{cmd}'" shell "docker exec #{@praefect} bash -c '#{cmd}'"
end end
......
...@@ -22,7 +22,7 @@ module QA ...@@ -22,7 +22,7 @@ module QA
praefect_manager.remove_repository_from_praefect_database(repo2["relative_path"]) praefect_manager.remove_repository_from_praefect_database(repo2["relative_path"])
end end
it 'allows admin to manage difference between praefect database and disk state', testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347606', quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/347415', type: :investigating } do it 'allows admin to manage difference between praefect database and disk state', testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347606' do
# Some repos are on disk that praefect is not aware of # Some repos are on disk that praefect is not aware of
untracked_repositories = praefect_manager.list_untracked_repositories untracked_repositories = praefect_manager.list_untracked_repositories
expect(untracked_repositories).to include(repo1) expect(untracked_repositories).to include(repo1)
......
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