Skip to content

Commit

Permalink
Merge pull request #316 from fmount/functional_tls
Browse files Browse the repository at this point in the history
Remove errorReason from tls input check functional test
  • Loading branch information
openshift-merge-bot[bot] authored Aug 12, 2024
2 parents 84d9504 + e20dba2 commit 05a3b0d
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions test/functional/manila_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -490,47 +490,39 @@ var _ = Describe("Manila controller", func() {
})

It("reports that the CA secret is missing", func() {
th.ExpectConditionWithDetails(
th.ExpectCondition(
manilaTest.ManilaAPI,
ConditionGetterFunc(ManilaAPIConditionGetter),
condition.TLSInputReadyCondition,
corev1.ConditionFalse,
condition.ErrorReason,
fmt.Sprintf("TLSInput error occured in TLS sources Secret %s/combined-ca-bundle not found", namespace),
)

th.ExpectConditionWithDetails(
th.ExpectCondition(
manilaTest.ManilaScheduler,
ConditionGetterFunc(ManilaSchedulerConditionGetter),
condition.TLSInputReadyCondition,
corev1.ConditionFalse,
condition.ErrorReason,
fmt.Sprintf("TLSInput error occured in TLS sources Secret %s/combined-ca-bundle not found", namespace),
)
})

It("reports that the internal cert secret is missing", func() {
DeferCleanup(k8sClient.Delete, ctx, th.CreateCABundleSecret(manilaTest.CABundleSecret))
th.ExpectConditionWithDetails(
th.ExpectCondition(
manilaTest.ManilaAPI,
ConditionGetterFunc(ManilaAPIConditionGetter),
condition.TLSInputReadyCondition,
corev1.ConditionFalse,
condition.ErrorReason,
fmt.Sprintf("TLSInput error occured in TLS sources Secret %s/internal-tls-certs not found", namespace),
)
})

It("reports that the public cert secret is missing", func() {
DeferCleanup(k8sClient.Delete, ctx, th.CreateCABundleSecret(manilaTest.CABundleSecret))
DeferCleanup(k8sClient.Delete, ctx, th.CreateCertSecret(manilaTest.InternalCertSecret))
th.ExpectConditionWithDetails(
th.ExpectCondition(
manilaTest.ManilaAPI,
ConditionGetterFunc(ManilaAPIConditionGetter),
condition.TLSInputReadyCondition,
corev1.ConditionFalse,
condition.ErrorReason,
fmt.Sprintf("TLSInput error occured in TLS sources Secret %s/public-tls-certs not found", namespace),
)
})

Expand Down

0 comments on commit 05a3b0d

Please sign in to comment.