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:
authorBen Kochie <bjk@gitlab.com>2019-09-11 13:35:21 +0300
committerNick Thomas <nick@gitlab.com>2019-09-11 13:35:21 +0300
commita1f6c8645f84251e75472324eaf48e74bec0ea46 (patch)
treeaf78da3daa0e59c3e2fa6712f4e770437fd518d1 /internal/domain
parent731d804c14158e5676e74214af8b7a29b544dea4 (diff)
Convert vendoring to go modules.
Apply a minimal upgrade to Go modules. * Fix various tests. * Drop vendoring.
Diffstat (limited to 'internal/domain')
-rw-r--r--internal/domain/domain_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/domain/domain_test.go b/internal/domain/domain_test.go
index 14e399ad..8b2dae1c 100644
--- a/internal/domain/domain_test.go
+++ b/internal/domain/domain_test.go
@@ -58,14 +58,14 @@ func testGroupServeHTTPHost(t *testing.T, host string) {
assert.HTTPBodyContains(t, serve, "GET", makeURL("/project2/"), nil, "project2-main")
assert.HTTPBodyContains(t, serve, "GET", makeURL("/project2/index"), nil, "project2-main")
assert.HTTPBodyContains(t, serve, "GET", makeURL("/project2/index.html"), nil, "project2-main")
- assert.HTTPRedirect(t, serve, "GET", makeURL("/private.project/"), nil)
+ assert.HTTPError(t, serve, "GET", makeURL("/private.project/"), nil)
assert.HTTPError(t, serve, "GET", makeURL("//about.gitlab.com/%2e%2e"), nil)
assert.HTTPError(t, serve, "GET", makeURL("/symlink"), nil)
assert.HTTPError(t, serve, "GET", makeURL("/symlink/index.html"), nil)
assert.HTTPError(t, serve, "GET", makeURL("/symlink/subdir/"), nil)
assert.HTTPError(t, serve, "GET", makeURL("/project/fifo"), nil)
assert.HTTPError(t, serve, "GET", makeURL("/not-existing-file"), nil)
- assert.HTTPError(t, serve, "GET", makeURL("/project//about.gitlab.com/%2e%2e"), nil)
+ assert.HTTPRedirect(t, serve, "GET", makeURL("/project//about.gitlab.com/%2e%2e"), nil)
}
func TestGroupServeHTTP(t *testing.T) {