diff options
author | Nick Thomas <nick@gitlab.com> | 2019-06-12 19:13:54 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-06-12 19:13:54 +0300 |
commit | 9f72694a4fe8ab116d5e2621b3225b0edcb9f193 (patch) | |
tree | cea042a08686ef075d8ea047599a927fceb74a31 /internal/domain/domain_test.go | |
parent | c6555c057a745608f8150ee7c7f3625c270bc301 (diff) | |
parent | 02558f71efd57858d9301416964769f2896e62fd (diff) |
Merge branch '228-pages-incorrectly-serve-acme-challenges-with-index-html' into 'master'
Resolve "Pages incorrectly serve acme-challenges with /index.html"
See merge request gitlab-org/gitlab-pages!151
Diffstat (limited to 'internal/domain/domain_test.go')
-rw-r--r-- | internal/domain/domain_test.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/domain/domain_test.go b/internal/domain/domain_test.go index a05dbe7e..14e399ad 100644 --- a/internal/domain/domain_test.go +++ b/internal/domain/domain_test.go @@ -226,6 +226,16 @@ func TestHasAcmeChallenge(t *testing.T) { expected: true, }, { + name: "Project containing acme challenge", + domain: &D{ + group: group{name: "group.acme"}, + projectName: "with.acme.challenge", + config: &domainConfig{HTTPSOnly: true}, + }, + token: "foldertoken", + expected: true, + }, + { name: "Project containing another token", domain: &D{ group: group{name: "group.acme"}, |