Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
postgres-operator
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
zalando
postgres-operator
Commits
6657baa7
Commit
6657baa7
authored
3 years ago
by
Felix Kunde
Browse files
Options
Downloads
Patches
Plain Diff
e2e: wait for replica after failover before fetching leader
parent
08665bb2
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
e2e/tests/test_e2e.py
+2
-0
2 additions, 0 deletions
e2e/tests/test_e2e.py
with
2 additions
and
0 deletions
e2e/tests/test_e2e.py
+
2
−
0
View file @
6657baa7
...
...
@@ -1177,6 +1177,7 @@ class EndToEndTestCase(unittest.TestCase):
# operator should now recreate the master pod and do a switchover before
k8s
.
wait_for_pod_failover
(
replica_nodes
,
'
spilo-role=master,
'
+
cluster_label
)
k8s
.
wait_for_pod_start
(
'
spilo-role=replica,
'
+
cluster_label
)
# check if the former replica is now the new master
leader
=
k8s
.
get_cluster_leader_pod
()
...
...
@@ -1246,6 +1247,7 @@ class EndToEndTestCase(unittest.TestCase):
# wait for next sync, replica should be running normally by now and be ready for switchover
k8s
.
wait_for_pod_failover
(
replica_nodes
,
'
spilo-role=master,
'
+
cluster_label
)
k8s
.
wait_for_pod_start
(
'
spilo-role=replica,
'
+
cluster_label
)
# check if the former replica is now the new master
leader
=
k8s
.
get_cluster_leader_pod
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment