diff --git a/test/e2e/certificate/certificate_acme.go b/test/e2e/certificate/certificate_acme.go index d82f6e54e..476b19fd8 100644 --- a/test/e2e/certificate/certificate_acme.go +++ b/test/e2e/certificate/certificate_acme.go @@ -98,6 +98,15 @@ var _ = framework.CertManagerDescribe("ACME Certificate (HTTP01)", func() { f.WaitCertificateIssuedValid(cert) }) + It("should obtain a signed certificate for a long domain using http01 validation", func() { + // the maximum length of a single segment of the domain being requested + const maxLengthOfDomainSegment = 63 + By("Creating a Certificate") + cert, err := f.CertManagerClientSet.CertmanagerV1alpha1().Certificates(f.Namespace.Name).Create(util.NewCertManagerACMECertificate(certificateName, certificateSecretName, issuerName, v1alpha1.IssuerKind, acmeIngressClass, fmt.Sprintf("%s.%s", cmutil.RandStringRunes(maxLengthOfDomainSegment), util.ACMECertificateDomain))) + Expect(err).NotTo(HaveOccurred()) + f.WaitCertificateIssuedValid(cert) + }) + It("should obtain a signed certificate with a CN and single subdomain as dns name from the ACME server", func() { By("Creating a Certificate") cert, err := f.CertManagerClientSet.CertmanagerV1alpha1().Certificates(f.Namespace.Name).Create(util.NewCertManagerACMECertificate(certificateName, certificateSecretName, issuerName, v1alpha1.IssuerKind, acmeIngressClass, util.ACMECertificateDomain, fmt.Sprintf("%s.%s", cmutil.RandStringRunes(5), util.ACMECertificateDomain)))