This commit is contained in:
Rafia Sabih
2021-05-19 17:39:56 +02:00
parent 620502010e
commit af719c07fe
3 changed files with 27 additions and 14 deletions
+3 -1
View File
@@ -547,7 +547,9 @@ class EndToEndTestCase(unittest.TestCase):
'''
Test secrets in different namespace
'''
app_namespace = "appspace"
k8s = self.k8s
k8s.api.core_v1.create_namespace(app_namespace)
k8s.api.custom_objects_api.patch_namespaced_custom_object(
'acid.zalan.do', 'v1', 'default',
'postgresqls', 'acid-minimal-cluster',
@@ -558,7 +560,7 @@ class EndToEndTestCase(unittest.TestCase):
}
}
})
self.eventuallyEqual(lambda: k8s.count_secrets_in_namespace('appspace'),
self.eventuallyEqual(lambda: k8s.count_secrets_in_namespace(app_namespace),
1, "Secret not created in user namespace")
@timeout_decorator.timeout(TEST_TIMEOUT_SEC)