diff options
Diffstat (limited to 'qa/qa/specs/features/api/3_create/repository/changing_repository_storage_spec.rb')
-rw-r--r-- | qa/qa/specs/features/api/3_create/repository/changing_repository_storage_spec.rb | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/qa/qa/specs/features/api/3_create/repository/changing_repository_storage_spec.rb b/qa/qa/specs/features/api/3_create/repository/changing_repository_storage_spec.rb deleted file mode 100644 index 11e7db5b097..00000000000 --- a/qa/qa/specs/features/api/3_create/repository/changing_repository_storage_spec.rb +++ /dev/null @@ -1,55 +0,0 @@ -# frozen_string_literal: true - -module QA - RSpec.describe 'Create' do - describe 'Changing Gitaly repository storage', :requires_admin do - shared_examples 'repository storage move' do - it 'confirms a `finished` status after moving project repository storage' do - expect(project).to have_file('README.md') - - project.change_repository_storage(destination_storage) - - expect(Runtime::API::RepositoryStorageMoves).to have_status(project, 'finished', destination_storage) - - Resource::Repository::ProjectPush.fabricate! do |push| - push.project = project - push.file_name = 'new_file' - push.file_content = '# This is a new file' - push.commit_message = 'Add new file' - push.new_branch = false - end - - expect(project).to have_file('README.md') - expect(project).to have_file('new_file') - end - end - - context 'when moving from one Gitaly storage to another', :orchestrated, :repository_storage do - let(:project) do - Resource::Project.fabricate_via_api! do |project| - project.name = 'repo-storage-move-status' - project.initialize_with_readme = true - end - end - let(:destination_storage) { QA::Runtime::Env.additional_repository_storage } - - it_behaves_like 'repository storage move' - end - - # Note: This test doesn't have the :orchestrated tag because it runs in the Test::Integration::Praefect - # scenario with other tests that aren't considered orchestrated. - context 'when moving from Gitaly to Gitaly Cluster', :requires_praefect, quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/227127', type: :investigating } do - let(:project) do - Resource::Project.fabricate_via_api! do |project| - project.name = 'repo-storage-move' - project.initialize_with_readme = true - project.repository_storage = 'gitaly' - end - end - let(:destination_storage) { QA::Runtime::Env.praefect_repository_storage } - - it_behaves_like 'repository storage move' - end - end - end -end |