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>2021-02-04 08:14:44 +0300
committerJaime Martinez <jmartinez@gitlab.com>2021-02-15 02:17:24 +0300
commitf54633ee2a26006a9bfb372d2f2242086a298b94 (patch)
tree7dc7489e589d36b983cd17dbccd258e3603e87c0 /test/acceptance/zip_test.go
parent586317c827f5878444bcc86bf953b21e7e31ee10 (diff)
Add test for path not allowed
Diffstat (limited to 'test/acceptance/zip_test.go')
-rw-r--r--test/acceptance/zip_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/acceptance/zip_test.go b/test/acceptance/zip_test.go
index 0f55e891..a7e82d27 100644
--- a/test/acceptance/zip_test.go
+++ b/test/acceptance/zip_test.go
@@ -184,6 +184,12 @@ func TestZipServingFromDisk(t *testing.T) {
expectedStatusCode: http.StatusNotFound,
expectedContent: "The page you're looking for could not be found",
},
+ "file_not_allowed_in_path": {
+ host: "zip-not-allowed-path.gitlab.io",
+ urlSuffix: "/",
+ expectedStatusCode: http.StatusInternalServerError,
+ expectedContent: "Whoops, something went wrong on our end.",
+ },
}
for name, tt := range tests {