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-06-09 09:20:31 +0300
committerJaime Martinez <jmartinez@gitlab.com>2020-07-06 02:13:51 +0300
commit2a23f2fb9bca74302dcdc40def50c748da4a5e06 (patch)
tree31698c64ca1b9b8dc370aa42d5015c63f5ca7fcb /internal/source
parent8e4dff76f1015bf10bdaedc295f726e80958bba1 (diff)
Move serving 404 logic to domain package
Simplify responsibilities of auth package and reduce complexity of app.go deciding which content to serve.
Diffstat (limited to 'internal/source')
-rw-r--r--internal/source/disk/domain_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/source/disk/domain_test.go b/internal/source/disk/domain_test.go
index d114ff8a..56297fd1 100644
--- a/internal/source/disk/domain_test.go
+++ b/internal/source/disk/domain_test.go
@@ -308,8 +308,8 @@ func TestDomain404ServeHTTP(t *testing.T) {
},
}
- testhelpers.AssertHTTP404(t, serveFileOrNotFound(testDomain), "GET", "http://group.404.test.io/not-existing-file", nil, "Custom 404 group page")
- testhelpers.AssertHTTP404(t, serveFileOrNotFound(testDomain), "GET", "http://group.404.test.io/", nil, "Custom 404 group page")
+ testhelpers.AssertHTTP404(t, serveFileOrNotFound(testDomain), "GET", "http://group.404.test.io/not-existing-file", nil, "Custom domain.404 page")
+ testhelpers.AssertHTTP404(t, serveFileOrNotFound(testDomain), "GET", "http://group.404.test.io/", nil, "Custom domain.404 page")
}
func TestPredefined404ServeHTTP(t *testing.T) {