Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuomo Ala-Vannesluoma <tuomoav@gmail.com>2018-06-17 23:34:04 +0300
committerTuomo Ala-Vannesluoma <tuomoav@gmail.com>2018-06-30 22:51:39 +0300
commit301dd4675e9df8ccc8ad47fe7f2c40c03428ddb2 (patch)
tree48d0456715a2cba4acd577d9baa40a39a7a50e6f /acceptance_test.go
parent9cf40354085f4b4446f06d4d03926dcaa6ab9565 (diff)
Fix logic to return failure instead of making private pages public
Diffstat (limited to 'acceptance_test.go')
-rw-r--r--acceptance_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/acceptance_test.go b/acceptance_test.go
index 654fcb69..78247f33 100644
--- a/acceptance_test.go
+++ b/acceptance_test.go
@@ -575,7 +575,7 @@ func TestKnownHostInReverseProxySetupReturns200(t *testing.T) {
}
}
-func TestWhenAuthIsDisabledPrivateIsPublic(t *testing.T) {
+func TestWhenAuthIsDisabledPrivateIsNotAccessible(t *testing.T) {
skipUnlessEnabled(t)
teardown := RunPagesProcess(t, *pagesBinary, listeners, "", "")
defer teardown()
@@ -584,7 +584,7 @@ func TestWhenAuthIsDisabledPrivateIsPublic(t *testing.T) {
require.NoError(t, err)
rsp.Body.Close()
- assert.Equal(t, http.StatusOK, rsp.StatusCode)
+ assert.Equal(t, http.StatusInternalServerError, rsp.StatusCode)
}
func TestWhenAuthIsEnabledPrivateWillRedirectToAuthorize(t *testing.T) {