From 64f7bf84baf4235fea0d1ff82b20908eddef216f Mon Sep 17 00:00:00 2001 From: z1cheng Date: Fri, 11 Aug 2023 12:33:46 +0000 Subject: [PATCH] Replace string with constant Signed-off-by: z1cheng --- test/e2e/annotations/auth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/annotations/auth.go b/test/e2e/annotations/auth.go index 68ec4ca7e..be915a722 100644 --- a/test/e2e/annotations/auth.go +++ b/test/e2e/annotations/auth.go @@ -435,7 +435,7 @@ http { }) ginkgo.It("user with annotated ingress retains cookie if upstream returns error status code", func() { - annotations["nginx.ingress.kubernetes.io/auth-always-set-cookie"] = "true" + annotations["nginx.ingress.kubernetes.io/auth-always-set-cookie"] = enableAnnotation f.UpdateIngress(ing1) f.UpdateIngress(ing2) @@ -661,7 +661,7 @@ http { framework.Sleep() annotations["nginx.ingress.kubernetes.io/auth-keepalive"] = "10" - annotations["nginx.ingress.kubernetes.io/auth-keepalive-share-vars"] = "true" + annotations["nginx.ingress.kubernetes.io/auth-keepalive-share-vars"] = enableAnnotation f.UpdateIngress(ing) f.WaitForNginxServer("",