test WIP changes to e2e tests

This commit is contained in:
Sergey Dudoladov 2020-11-09 07:35:23 +01:00
parent eda2c4e91c
commit 7fa93623e9
2 changed files with 3 additions and 3 deletions

View File

@ -433,7 +433,7 @@ class K8sBase:
def count_pdbs_with_label(self, labels, namespace='default'):
return len(self.api.policy_v1_beta1.list_namespaced_pod_disruption_budget(
namespace, label_selector=labels).items)
def count_running_pods(self, labels='application=spilo,cluster-name=acid-minimal-cluster', namespace='default'):
pods = self.api.core_v1.list_namespaced_pod(namespace, label_selector=labels).items
return len(list(filter(lambda x: x.status.phase=='Running', pods)))

View File

@ -616,7 +616,7 @@ class EndToEndTestCase(unittest.TestCase):
print('Operator log: {}'.format(k8s.get_operator_log()))
raise
finally:
k8s.api.core_v1.delete_namespace("test")
k8s.api.core_v1.delete_namespace(self.namespace)
@timeout_decorator.timeout(TEST_TIMEOUT_SEC)
def test_zz_node_readiness_label(self):
@ -667,7 +667,7 @@ class EndToEndTestCase(unittest.TestCase):
raise
@timeout_decorator.timeout(TEST_TIMEOUT_SEC)
def test_scaling(self):
def test_a_scaling(self):
'''
Scale up from 2 to 3 and back to 2 pods by updating the Postgres manifest at runtime.
'''