minor change to restart test

This commit is contained in:
Felix Kunde 2021-07-23 15:14:12 +02:00
parent dfbc5f2546
commit 53c71a2264
1 changed files with 27 additions and 16 deletions

View File

@ -314,6 +314,8 @@ class EndToEndTestCase(unittest.TestCase):
}
}
}
try:
k8s.api.custom_objects_api.patch_namespaced_custom_object(
"acid.zalan.do", "v1", "default", "postgresqls", "acid-minimal-cluster", pg_patch_max_connections)
@ -337,6 +339,15 @@ class EndToEndTestCase(unittest.TestCase):
self.assertEqual(creationTimestamp, masterPod.metadata.creation_timestamp,
"Master pod creation timestamp is updated")
except timeout_decorator.TimeoutError:
print('Operator log: {}'.format(k8s.get_operator_log()))
raise
# make sure cluster is in a good state for further tests
self.eventuallyEqual(lambda: k8s.get_operator_state(), {"0": "idle"}, "Operator does not get in sync")
self.eventuallyEqual(lambda: k8s.count_running_pods(), 2,
"No 2 pods running")
@timeout_decorator.timeout(TEST_TIMEOUT_SEC)
def test_enable_disable_connection_pooler(self):
'''