Skip to content

Commit

Permalink
Fix go tests which have external-dns annotation
Browse files Browse the repository at this point in the history
This is failing on external-dns annotations:
 error: unable to decode
  • Loading branch information
vijay-veeranki committed Aug 6, 2021
1 parent ddeb678 commit e0a626f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/modsec_ingress_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/nginx_ingress_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit e0a626f

Please sign in to comment.