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:
Diffstat (limited to 'internal/service/deploy/deploy_test.go')
-rw-r--r--internal/service/deploy/deploy_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/service/deploy/deploy_test.go b/internal/service/deploy/deploy_test.go
index 967c9c47..156e333c 100644
--- a/internal/service/deploy/deploy_test.go
+++ b/internal/service/deploy/deploy_test.go
@@ -100,6 +100,7 @@ func TestDeleteSiteFail(t *testing.T) {
{desc: "traversal end", path: "foo/bar/..", code: codes.InvalidArgument},
{desc: "path starting with period", path: ".foo/bar", code: codes.InvalidArgument},
{desc: "path starting with slash", path: "/foo/bar", code: codes.InvalidArgument},
+ {desc: "path starting with tilde", path: "~/foo/bar", code: codes.InvalidArgument},
{desc: "directory does not exist", path: "does/not/exist", code: codes.FailedPrecondition},
{desc: "path is a file not a directory", path: path.Join(sitePath, "hello"), code: codes.FailedPrecondition},
}