e2e: wait for pods after disabling anti affinity (#862)

This commit is contained in:
Felix Kunde 2020-03-11 14:08:54 +01:00 committed by GitHub
parent 35b2213e05
commit cde61f3f0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -441,13 +441,15 @@ class EndToEndTestCase(unittest.TestCase):
self.assert_failover(
master_node, len(replica_nodes), failover_targets, cluster_label)
# disable pod anti affintiy again
# now disable pod anti affintiy again which will cause yet another failover
patch_disable_antiaffinity = {
"data": {
"enable_pod_antiaffinity": "false"
}
}
k8s.update_config(patch_disable_antiaffinity)
k8s.wait_for_pod_start('spilo-role=master')
k8s.wait_for_pod_start('spilo-role=replica')
class K8sApi: