From daa09a2653d890fea607b2885de4d25267b30b47 Mon Sep 17 00:00:00 2001 From: Jaime Martinez Date: Mon, 28 Sep 2020 17:05:51 +1000 Subject: Ignore `@ hashed` directory for disk source --- acceptance_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'acceptance_test.go') 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 } -- cgit v1.2.3