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:
authorfeistel <6742251-feistel@users.noreply.gitlab.com>2021-08-26 04:06:41 +0300
committerfeistel <6742251-feistel@users.noreply.gitlab.com>2021-08-26 04:14:15 +0300
commit468c824b461678a1144d811680f6d4a30dd66130 (patch)
treecc01d6bbe277a3539f61ed82d6ad8aeb8dc1c1fa /app_test.go
parent0ef975db7aaa3595ebf56fde4a91351aa0174f11 (diff)
refactor: remove internal/source/domains package
Diffstat (limited to 'app_test.go')
-rw-r--r--app_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/app_test.go b/app_test.go
index 483ffb39..3b476bdb 100644
--- a/app_test.go
+++ b/app_test.go
@@ -13,7 +13,7 @@ import (
"gitlab.com/gitlab-org/gitlab-pages/internal/config"
"gitlab.com/gitlab-org/gitlab-pages/internal/request"
- "gitlab.com/gitlab-org/gitlab-pages/internal/source"
+ "gitlab.com/gitlab-org/gitlab-pages/internal/source/gitlab"
)
func Test_setRequestScheme(t *testing.T) {
@@ -92,7 +92,7 @@ func TestHealthCheckMiddleware(t *testing.T) {
JWTTokenExpiration: time.Second,
}
- domains, err := source.NewDomains(&validCfg)
+ source, err := gitlab.New(&validCfg)
require.NoError(t, err)
cfg := config.Config{
@@ -102,8 +102,8 @@ func TestHealthCheckMiddleware(t *testing.T) {
}
app := theApp{
- config: &cfg,
- domains: domains,
+ config: &cfg,
+ source: source,
}
handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {