From c166cbe5d2b3837200baf06cbcba92acc1b9e891 Mon Sep 17 00:00:00 2001 From: Martin Schuppert Date: Mon, 22 Apr 2024 12:44:10 +0200 Subject: [PATCH] [test] validate that TLSInputReadyCondition is ready when cert secrets are set --- tests/functional/horizon_controller_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/functional/horizon_controller_test.go b/tests/functional/horizon_controller_test.go index ac720713..3993afa6 100644 --- a/tests/functional/horizon_controller_test.go +++ b/tests/functional/horizon_controller_test.go @@ -322,6 +322,13 @@ var _ = Describe("Horizon controller", func() { Namespace: namespace, })) + th.ExpectCondition( + horizonName, + ConditionGetterFunc(HorizonConditionGetter), + condition.TLSInputReadyCondition, + corev1.ConditionTrue, + ) + th.SimulateDeploymentReplicaReady(deploymentName) th.ExpectCondition( @@ -365,6 +372,13 @@ var _ = Describe("Horizon controller", func() { Namespace: namespace, })) + th.ExpectCondition( + horizonName, + ConditionGetterFunc(HorizonConditionGetter), + condition.TLSInputReadyCondition, + corev1.ConditionTrue, + ) + th.SimulateDeploymentReplicaReady(deploymentName) originalHash := GetEnvVarValue(