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-09-28 10:05:51 +0300
committerJaime Martinez <jmartinez@gitlab.com>2020-09-28 10:11:43 +0300
commitdaa09a2653d890fea607b2885de4d25267b30b47 (patch)
tree7359d833c1e08268824d0a1a5b7fed1c6043e43f /acceptance_test.go
parentc5215c0795cc04d895500ce5e9c54f2bb6723db6 (diff)
Ignore `@ hashed` directory for disk source
Diffstat (limited to 'acceptance_test.go')
-rw-r--r--acceptance_test.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/acceptance_test.go b/acceptance_test.go
index 02c71f1d..7817bf81 100644
--- a/acceptance_test.go
+++ b/acceptance_test.go
@@ -1900,6 +1900,17 @@ func TestDomainsSource(t *testing.T) {
apiCalled: false,
},
},
+ {
+ name: "disk_source_domain_should_not_exist_under_hashed_dir",
+ args: args{
+ configSource: "disk",
+ domain: "hashed.com",
+ },
+ want: want{
+ statusCode: http.StatusNotFound,
+ apiCalled: false,
+ },
+ },
// TODO: modify mock so we can test domain-config-source=auto when API/disk is not ready https://gitlab.com/gitlab-org/gitlab/-/issues/218358
}