Skip to content

Commit

Permalink
Improve wording of no-auth-location tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alvaroaleman committed Apr 1, 2018
1 parent 2fe8919 commit d4ac563
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/e2e/settings/no_auth_locations.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ var _ = framework.IngressNginxDescribe("No Auth locations", func() {
updateConfigmap(setting, "/.well-known/acme-challenge", f.KubeClientSet)
})

It("should return status code 401 when not accessing no-auth-location without authentication", func() {
It("should return status code 401 when accessing '/' unauthentication", func() {
err := f.WaitForNginxServer(host,
func(server string) bool {
return Expect(server).Should(ContainSubstring("test auth"))
Expand All @@ -80,7 +80,7 @@ var _ = framework.IngressNginxDescribe("No Auth locations", func() {
Expect(body).Should(ContainSubstring("401 Authorization Required"))
})

It("should return status code 200 when not accessing no-auth-location with authentication", func() {
It("should return status code 200 when accessing '/' authentication", func() {
err := f.WaitForNginxServer(host,
func(server string) bool {
return Expect(server).Should(ContainSubstring("test auth"))
Expand All @@ -97,7 +97,7 @@ var _ = framework.IngressNginxDescribe("No Auth locations", func() {
Expect(resp.StatusCode).Should(Equal(http.StatusOK))
})

It("should return status code 200 when accessing no-auth-location without authenticating", func() {
It("should return status code 200 when accessing '/noauth' unauthenticated", func() {
err := f.WaitForNginxServer(host,
func(server string) bool {
return Expect(server).Should(ContainSubstring("test auth"))
Expand Down

0 comments on commit d4ac563

Please sign in to comment.