Skip to content

Commit

Permalink
Merge pull request #407 from stuggi/TLSInputReadyCondition_ready_check
Browse files Browse the repository at this point in the history
[test] validate that TLSInputReadyCondition is ready when cert secret…
  • Loading branch information
openshift-merge-bot[bot] committed Apr 22, 2024
2 parents d4f7fd0 + 7052bca commit 9546ece
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/functional/keystoneapi_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9546ece

Please sign in to comment.