From f771e7247a308bbdf6827872a0a415648e4efe5e Mon Sep 17 00:00:00 2001 From: Elvin Efendi Date: Fri, 28 Jun 2019 16:21:59 -0400 Subject: [PATCH] test to make sure dynamic cert works trailing dot in domains --- test/e2e/lua/dynamic_certificates.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/e2e/lua/dynamic_certificates.go b/test/e2e/lua/dynamic_certificates.go index bdf4c09b97..dd374143b6 100644 --- a/test/e2e/lua/dynamic_certificates.go +++ b/test/e2e/lua/dynamic_certificates.go @@ -130,6 +130,10 @@ var _ = framework.IngressNginxDescribe("Dynamic Certificate", func() { ensureHTTPSRequest(f.GetURL(framework.HTTPS), host, host) }) + It("supports requests with domain with trailing dot", func() { + ensureHTTPSRequest(f.GetURL(framework.HTTPS), host+".", host) + }) + It("picks up the updated certificate without reloading", func() { ing, err := f.KubeClientSet.ExtensionsV1beta1().Ingresses(f.Namespace).Get(host, metav1.GetOptions{}) Expect(err).ToNot(HaveOccurred())