summaryrefslogtreecommitdiff
path: root/qa/qa/specs/features/browser_ui/3_create/gitaly/high_availability_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/specs/features/browser_ui/3_create/gitaly/high_availability_spec.rb')
-rw-r--r--qa/qa/specs/features/browser_ui/3_create/gitaly/high_availability_spec.rb65
1 files changed, 0 insertions, 65 deletions
diff --git a/qa/qa/specs/features/browser_ui/3_create/gitaly/high_availability_spec.rb b/qa/qa/specs/features/browser_ui/3_create/gitaly/high_availability_spec.rb
deleted file mode 100644
index 97a76c1aa01..00000000000
--- a/qa/qa/specs/features/browser_ui/3_create/gitaly/high_availability_spec.rb
+++ /dev/null
@@ -1,65 +0,0 @@
-# frozen_string_literal: true
-
-module QA
- RSpec.describe 'Create' do
- context 'Gitaly' do
- describe 'High Availability', :orchestrated, :gitaly_ha do
- let(:project) do
- Resource::Project.fabricate! do |project|
- project.name = 'gitaly_high_availability'
- end
- end
- let(:initial_file) { 'pushed_to_primary.txt' }
- let(:final_file) { 'committed_to_primary.txt' }
- let(:praefect_manager) { Service::PraefectManager.new }
-
- before do
- Flow::Login.sign_in
- end
-
- after do
- praefect_manager.reset_cluster
- end
-
- it 'makes sure that automatic failover is happening' do
- Resource::Repository::ProjectPush.fabricate! do |push|
- push.project = project
- push.commit_message = 'pushed to primary gitaly node'
- push.new_branch = true
- push.file_name = initial_file
- push.file_content = "This should exist on both nodes"
- end
-
- praefect_manager.trigger_failover_by_stopping_primary_node
-
- project.visit!
-
- Page::Project::Show.perform do |show|
- show.wait_until do
- show.has_name?(project.name)
- end
- expect(show).to have_file(initial_file)
- end
-
- praefect_manager.enable_writes
-
- Resource::Repository::Commit.fabricate_via_api! do |commit|
- commit.project = project
- commit.add_files([
- {
- file_path: final_file,
- content: 'This should exist on both nodes too'
- }
- ])
- end
-
- project.visit!
-
- Page::Project::Show.perform do |show|
- expect(show).to have_file(final_file)
- end
- end
- end
- end
- end
-end