Only assert that the not ready condition is set in acme failure case test
Signed-off-by: James Munnelly <james@munnelly.eu>
This commit is contained in:
parent
cf2f9eac74
commit
5a10008790
@ -197,16 +197,6 @@ var _ = framework.CertManagerDescribe("ACME Certificate (HTTP01)", func() {
|
||||
}
|
||||
Eventually(cert, "30s", "1s").Should(HaveCondition(f, notReadyCondition))
|
||||
Consistently(cert, "1m", "10s").Should(HaveCondition(f, notReadyCondition))
|
||||
|
||||
By("Verifying TLS certificate secret does not exist")
|
||||
d, err := f.KubeClientSet.CoreV1().Secrets(f.Namespace.Name).Get(certificateSecretName, metav1.GetOptions{})
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
if len(d.Data["tls.key"]) == 0 {
|
||||
Fail("expected private key to be generated")
|
||||
}
|
||||
if len(d.Data["tls.crt"]) > 0 {
|
||||
Fail("expected certificate to be empty")
|
||||
}
|
||||
})
|
||||
|
||||
It("should obtain a signed certificate with a single CN from the ACME server when putting an annotation on an ingress resource", func() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user