Fix status code
This commit is contained in:
parent
025d4eaceb
commit
f9e2b7c14b
1 changed files with 2 additions and 2 deletions
|
@ -214,7 +214,7 @@ var _ = framework.IngressNginxDescribe("Annotations - Auth", func() {
|
||||||
Expect(resp.StatusCode).Should(Equal(http.StatusOK))
|
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"
|
host := "auth"
|
||||||
|
|
||||||
s := f.EnsureSecret(
|
s := f.EnsureSecret(
|
||||||
|
@ -253,7 +253,7 @@ var _ = framework.IngressNginxDescribe("Annotations - Auth", func() {
|
||||||
End()
|
End()
|
||||||
|
|
||||||
Expect(errs).Should(BeEmpty())
|
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() {
|
It(`should set snippet "proxy_set_header My-Custom-Header 42;" when external auth is configured`, func() {
|
||||||
|
|
Loading…
Reference in a new issue