diff --git a/test/e2e/annotations/auth.go b/test/e2e/annotations/auth.go index af6d3dae67..ddda1dce5f 100644 --- a/test/e2e/annotations/auth.go +++ b/test/e2e/annotations/auth.go @@ -289,26 +289,6 @@ var _ = framework.DescribeAnnotation("auth-*", func() { }) }) - ginkgo.It(`should set snippet "proxy_set_header My-Custom-Header 42;" when external auth is configured`, func() { - host := authHost - - annotations := map[string]string{ - "nginx.ingress.kubernetes.io/auth-url": "http://something.com/#;\nournewinjection", - "nginx.ingress.kubernetes.io/auth-snippet": ` - proxy_set_header My-Custom-Header 42;`, - } - disableSnippet := f.AllowSnippetConfiguration() - defer disableSnippet() - - ing := framework.NewSingleIngress(host, "/", host, f.Namespace, framework.EchoService, 80, annotations) - f.EnsureIngress(ing) - - f.WaitForNginxServer(host, - func(server string) bool { - return strings.Contains(server, `proxy_set_header My-Custom-Header 42;`) - }) - }) - ginkgo.It(`should not set snippet "proxy_set_header My-Custom-Header 42;" when external auth is not configured`, func() { host := authHost disableSnippet := f.AllowSnippetConfiguration()