Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-12-20 17:22:11 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-20 17:22:11 +0300
commit0c872e02b2c822e3397515ec324051ff540f0cd5 (patch)
treece2fb6ce7030e4dad0f4118d21ab6453e5938cdd /qa/qa/specs/features/api/12_systems/gitaly/backend_node_recovery_spec.rb
parentf7e05a6853b12f02911494c4b3fe53d9540d74fc (diff)
Add latest changes from gitlab-org/gitlab@15-7-stable-eev15.7.0-rc42
Diffstat (limited to 'qa/qa/specs/features/api/12_systems/gitaly/backend_node_recovery_spec.rb')
-rw-r--r--qa/qa/specs/features/api/12_systems/gitaly/backend_node_recovery_spec.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/qa/qa/specs/features/api/12_systems/gitaly/backend_node_recovery_spec.rb b/qa/qa/specs/features/api/12_systems/gitaly/backend_node_recovery_spec.rb
index 1abc7b8a912..022f51205f0 100644
--- a/qa/qa/specs/features/api/12_systems/gitaly/backend_node_recovery_spec.rb
+++ b/qa/qa/specs/features/api/12_systems/gitaly/backend_node_recovery_spec.rb
@@ -27,8 +27,8 @@ module QA
# Stop the primary node to trigger failover, and then wait
# for Gitaly to be ready for writes again
- praefect_manager.stop_primary_node
- praefect_manager.wait_for_primary_node_health_check_failure
+ praefect_manager.stop_node(praefect_manager.primary_node)
+ praefect_manager.wait_for_health_check_failure(praefect_manager.primary_node)
# Push a commit to the new primary
Resource::Repository::ProjectPush.fabricate! do |push|
@@ -43,7 +43,7 @@ module QA
expect(praefect_manager).to be_replication_pending
# Start the old primary node again
- praefect_manager.start_primary_node
+ praefect_manager.start_node(praefect_manager.primary_node)
praefect_manager.wait_for_health_check_all_nodes
# Wait for automatic replication
@@ -51,8 +51,8 @@ module QA
# Force switch to the old primary node
# This ensures that the commit was replicated
- praefect_manager.stop_secondary_node
- praefect_manager.stop_tertiary_node
+ praefect_manager.stop_node(praefect_manager.secondary_node)
+ praefect_manager.stop_node(praefect_manager.tertiary_node)
# Confirm that both commits are available
expect(project.commits.map { |commit| commit[:message].chomp })