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/domain/map_test.go')
-rw-r--r--internal/domain/map_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/domain/map_test.go b/internal/domain/map_test.go
index a2b2b575..2306edef 100644
--- a/internal/domain/map_test.go
+++ b/internal/domain/map_test.go
@@ -70,6 +70,14 @@ func TestReadProjects(t *testing.T) {
exp2 := &domainConfig{Domain: "other.domain.com", Certificate: "test", Key: "key"}
assert.Equal(t, exp2, dm["other.domain.com"].config)
+
+ // check subgroups
+ domain, ok := dm["group.test.io"]
+ require.True(t, ok, "missing group.test.io domain")
+ subgroup, ok := domain.subgroups["subgroup"]
+ require.True(t, ok, "missing group.test.io subgroup")
+ _, ok = subgroup.projects["project"]
+ require.True(t, ok, "missing project for subgrup in group.test.io domain")
}
// This write must be atomic, otherwise we cannot predict the state of the