Skip to content

Commit

Permalink
[test] validate that TLSInputReadyCondition is ready when cert secret…
Browse files Browse the repository at this point in the history
…s are set
  • Loading branch information
stuggi committed Apr 22, 2024
1 parent ce13567 commit c166cbe
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/functional/horizon_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit c166cbe

Please sign in to comment.