From f9e2b7c14b46a9d42befc792e2dc403b751584fa Mon Sep 17 00:00:00 2001 From: Manuel Alejandro de Brito Fontes Date: Fri, 27 Dec 2019 20:33:28 -0300 Subject: [PATCH] Fix status code --- test/e2e/annotations/auth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e/annotations/auth.go b/test/e2e/annotations/auth.go index ce927907b..66ab3d80b 100644 --- a/test/e2e/annotations/auth.go +++ b/test/e2e/annotations/auth.go @@ -214,7 +214,7 @@ var _ = framework.IngressNginxDescribe("Annotations - Auth", func() { Expect(resp.StatusCode).Should(Equal(http.StatusOK)) }) - It("should return status code 500 when authentication is configured with invalid content and Authorization header is sent", func() { + It("should return status code 401 when authentication is configured with invalid content and Authorization header is sent", func() { host := "auth" s := f.EnsureSecret( @@ -253,7 +253,7 @@ var _ = framework.IngressNginxDescribe("Annotations - Auth", func() { End() Expect(errs).Should(BeEmpty()) - Expect(resp.StatusCode).Should(Equal(http.StatusInternalServerError)) + Expect(resp.StatusCode).Should(Equal(http.StatusUnauthorized)) }) It(`should set snippet "proxy_set_header My-Custom-Header 42;" when external auth is configured`, func() {