From e0a626f35bd20cb3d6926a023405a44a14ec03bf Mon Sep 17 00:00:00 2001 From: Vijay Veeranki Date: Fri, 6 Aug 2021 17:27:49 +0100 Subject: [PATCH] Fix go tests which have external-dns annotation This is failing on external-dns annotations: error: unable to decode --- tests/e2e/modsec_ingress_test.go | 4 ++-- tests/e2e/nginx_ingress_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/e2e/modsec_ingress_test.go b/tests/e2e/modsec_ingress_test.go index 8fe1842b4..89178f4c6 100644 --- a/tests/e2e/modsec_ingress_test.go +++ b/tests/e2e/modsec_ingress_test.go @@ -52,8 +52,8 @@ var _ = Describe("Modsec Ingress", func() { TemplateVars := map[string]interface{}{ "ingress_annotations": map[string]string{ "kubernetes.io/ingress.class": "modsec01", - "external-dns.alpha.kubernetes.io/aws-weight": "100", - "external-dns.alpha.kubernetes.io/set-identifier": "dns-test", + "external-dns.alpha.kubernetes.io/aws-weight": "\"100\"", + "external-dns.alpha.kubernetes.io/set-identifier": "\"dns-test\"", "nginx.ingress.kubernetes.io/enable-modsecurity": "\"true\"", "nginx.ingress.kubernetes.io/modsecurity-snippet": "|\n SecRuleEngine On", }, diff --git a/tests/e2e/nginx_ingress_test.go b/tests/e2e/nginx_ingress_test.go index b41eadabc..c0fdac1de 100644 --- a/tests/e2e/nginx_ingress_test.go +++ b/tests/e2e/nginx_ingress_test.go @@ -50,8 +50,8 @@ var _ = Describe("Nginx Ingress", func() { TemplateVars := map[string]interface{}{ "ingress_annotations": map[string]string{ "kubernetes.io/ingress.class": "nginx", - "external-dns.alpha.kubernetes.io/aws-weight": "100", - "external-dns.alpha.kubernetes.io/set-identifier": "dns-test", + "external-dns.alpha.kubernetes.io/aws-weight": "\"100\"", + "external-dns.alpha.kubernetes.io/set-identifier": "\"dns-test\"", }, "host": host, }