From 7052bca13efaa2a1661dabdc725699c6445b755f Mon Sep 17 00:00:00 2001 From: Martin Schuppert Date: Mon, 22 Apr 2024 10:01:57 +0200 Subject: [PATCH] [test] validate that TLSInputReadyCondition is ready when cert secrets are set --- tests/functional/keystoneapi_controller_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/functional/keystoneapi_controller_test.go b/tests/functional/keystoneapi_controller_test.go index 4287d10a..026b503c 100644 --- a/tests/functional/keystoneapi_controller_test.go +++ b/tests/functional/keystoneapi_controller_test.go @@ -911,6 +911,13 @@ var _ = Describe("Keystone controller", func() { DeferCleanup(k8sClient.Delete, ctx, th.CreateCertSecret(internalCertSecretName)) DeferCleanup(k8sClient.Delete, ctx, th.CreateCertSecret(publicCertSecretName)) + th.ExpectCondition( + keystoneAPIName, + ConditionGetterFunc(KeystoneConditionGetter), + condition.TLSInputReadyCondition, + corev1.ConditionTrue, + ) + j := th.GetJob(dbSyncJobName) th.AssertVolumeExists(caBundleSecretName.Name, j.Spec.Template.Spec.Volumes) th.AssertVolumeMountExists(caBundleSecretName.Name, "tls-ca-bundle.pem", j.Spec.Template.Spec.Containers[0].VolumeMounts)