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:
authorJaime Martinez <jmartinez@gitlab.com>2020-03-31 09:04:15 +0300
committerJaime Martinez <jmartinez@gitlab.com>2020-07-06 02:13:50 +0300
commit11b5932d1f41d6b9f46331ef97d427948ed00712 (patch)
treec66ab4e0d11a45556639f6cf0a05983e142017cc /acceptance_test.go
parent6809da705f3a93de6c221909991ce6d1eaf6d4dc (diff)
Serve custom 404.html file for namespace domains
This will allow namespace domains to serve custom 404.html files for public projects. This change adds a check to check for permision only if it's serving a namespace domain with access controls enabled.
Diffstat (limited to 'acceptance_test.go')
-rw-r--r--acceptance_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/acceptance_test.go b/acceptance_test.go
index e8f7fe1a..67558964 100644
--- a/acceptance_test.go
+++ b/acceptance_test.go
@@ -1214,7 +1214,7 @@ func TestAccessControlGroupDomain404RedirectsAuth(t *testing.T) {
teardown := RunPagesProcessWithAuth(t, *pagesBinary, listeners, "")
defer teardown()
- rsp, err := GetRedirectPage(t, httpListener, "group.gitlab-example.com", "/nonexistent/")
+ rsp, err := GetRedirectPage(t, httpListener, "group.auth.gitlab-example.com", "/nonexistent/")
require.NoError(t, err)
defer rsp.Body.Close()
require.Equal(t, http.StatusFound, rsp.StatusCode)