Skip to content

Commit

Permalink
revert e2e test
Browse files Browse the repository at this point in the history
Signed-off-by: James Strong <[email protected]>
  • Loading branch information
strongjz committed Jan 8, 2025
1 parent 2b19d2e commit 8c1f4fe
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions test/e2e/annotations/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8c1f4fe

Please sign in to comment.