update e2e
This commit is contained in:
parent
09039e8730
commit
c0bfca9225
|
|
@ -168,9 +168,6 @@ class K8s:
|
||||||
def count_secrets_with_label(self, labels, namespace='default'):
|
def count_secrets_with_label(self, labels, namespace='default'):
|
||||||
return len(self.api.core_v1.list_namespaced_secret(namespace, label_selector=labels).items)
|
return len(self.api.core_v1.list_namespaced_secret(namespace, label_selector=labels).items)
|
||||||
|
|
||||||
def count_secrets_in_namespace(self, labels, namespace):
|
|
||||||
return len(self.api.core_v1.list_namespaced_secret(namespace).items)
|
|
||||||
|
|
||||||
def count_statefulsets_with_label(self, labels, namespace='default'):
|
def count_statefulsets_with_label(self, labels, namespace='default'):
|
||||||
return len(self.api.apps_v1.list_namespaced_stateful_set(namespace, label_selector=labels).items)
|
return len(self.api.apps_v1.list_namespaced_stateful_set(namespace, label_selector=labels).items)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -322,7 +322,6 @@ class EndToEndTestCase(unittest.TestCase):
|
||||||
self.eventuallyEqual(lambda: self.k8s.count_running_pods("connection-pooler=acid-minimal-cluster-pooler"),
|
self.eventuallyEqual(lambda: self.k8s.count_running_pods("connection-pooler=acid-minimal-cluster-pooler"),
|
||||||
0, "Pooler pods not scaled down")
|
0, "Pooler pods not scaled down")
|
||||||
|
|
||||||
|
|
||||||
@timeout_decorator.timeout(TEST_TIMEOUT_SEC)
|
@timeout_decorator.timeout(TEST_TIMEOUT_SEC)
|
||||||
def test_enable_disable_connection_pooler(self):
|
def test_enable_disable_connection_pooler(self):
|
||||||
'''
|
'''
|
||||||
|
|
@ -611,7 +610,7 @@ class EndToEndTestCase(unittest.TestCase):
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
self.eventuallyEqual(lambda: k8s.count_secrets_in_namespace(app_namespace),
|
self.eventuallyEqual(lambda: k8s.count_secrets_with_label("cluster_name=acid-minimal-cluster,application=spilo", app_namespace),
|
||||||
1, "Secret not created for user in namespace", app_namespace)
|
1, "Secret not created for user in namespace", app_namespace)
|
||||||
|
|
||||||
@timeout_decorator.timeout(TEST_TIMEOUT_SEC)
|
@timeout_decorator.timeout(TEST_TIMEOUT_SEC)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue