Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Cai <jcai@gitlab.com>2019-11-26 22:34:43 +0300
committerJohn Cai <jcai@gitlab.com>2019-11-26 22:34:43 +0300
commit59f4dd3c9a4f7a562849e3bd3d27dce5e0b4551c (patch)
tree905df77c5b25e392ff5d0300223668e6e0bedede /internal/praefect/auth_test.go
parent39bfe1dfaa4fcd493d53b21b7a172d0cad2ef8ac (diff)
Praefect multiple virtual storage
Diffstat (limited to 'internal/praefect/auth_test.go')
-rw-r--r--internal/praefect/auth_test.go18
1 files changed, 11 insertions, 7 deletions
diff --git a/internal/praefect/auth_test.go b/internal/praefect/auth_test.go
index b426910f8..ff510e460 100644
--- a/internal/praefect/auth_test.go
+++ b/internal/praefect/auth_test.go
@@ -166,13 +166,17 @@ func runServer(t *testing.T, token string, required bool) (*Server, string, func
backend, cleanup := newMockDownstream(t, backendToken, mockServer)
conf := config.Config{
- VirtualStorageName: "praefect",
- Auth: auth.Config{Token: token, Transitioning: !required},
- Nodes: []*models.Node{
- &models.Node{
- Storage: "praefect-internal-0",
- DefaultPrimary: true,
- Address: backend,
+ Auth: auth.Config{Token: token, Transitioning: !required},
+ VirtualStorages: []*config.VirtualStorage{
+ &config.VirtualStorage{
+ Name: "praefect",
+ Nodes: []*models.Node{
+ &models.Node{
+ Storage: "praefect-internal-0",
+ DefaultPrimary: true,
+ Address: backend,
+ },
+ },
},
},
}