From c77238a1e605ff1fc1d7648f9e5e9c908ed8da1e Mon Sep 17 00:00:00 2001 From: Ricardo Katz Date: Thu, 12 Aug 2021 18:03:50 -0300 Subject: [PATCH] Fix default backend annotation test (#7486) --- test/e2e/annotations/customhttperrors.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/annotations/customhttperrors.go b/test/e2e/annotations/customhttperrors.go index 6f7c26b3c6..c0115cb524 100644 --- a/test/e2e/annotations/customhttperrors.go +++ b/test/e2e/annotations/customhttperrors.go @@ -116,7 +116,7 @@ var _ = framework.DescribeAnnotation("custom-http-errors", func() { } return false }) - assert.Contains(ginkgo.GinkgoT(), serverConfig, errorBlockName(fmt.Sprintf("custom-default-backend-%s", customDefaultBackend), "503")) - assert.Contains(ginkgo.GinkgoT(), serverConfig, fmt.Sprintf("error_page %s = %s", "503", errorBlockName(fmt.Sprintf("custom-default-backend-%s", customDefaultBackend), "503"))) + assert.Contains(ginkgo.GinkgoT(), serverConfig, errorBlockName(fmt.Sprintf("custom-default-backend-%s-%s", f.Namespace, customDefaultBackend), "503")) + assert.Contains(ginkgo.GinkgoT(), serverConfig, fmt.Sprintf("error_page %s = %s", "503", errorBlockName(fmt.Sprintf("custom-default-backend-%s-%s", f.Namespace, customDefaultBackend), "503"))) }) })