1
0
Fork 0

Normalize default names for ConsulCatalog.

This commit is contained in:
Ludovic Fernandez 2020-03-30 19:12:05 +02:00 committed by GitHub
parent a6b6e1d101
commit 6f749c6414
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 11 deletions

View file

@ -284,7 +284,7 @@ func Test_buildConfiguration(t *testing.T) {
{
ID: "Test",
Node: "Node1",
Name: "Test",
Name: "dev/Test",
Labels: map[string]string{},
Address: "127.0.0.1",
Port: "80",
@ -302,14 +302,14 @@ func Test_buildConfiguration(t *testing.T) {
},
HTTP: &dynamic.HTTPConfiguration{
Routers: map[string]*dynamic.Router{
"Test": {
Service: "Test",
Rule: "Host(`Test.traefik.wtf`)",
"dev-Test": {
Service: "dev-Test",
Rule: "Host(`dev-Test.traefik.wtf`)",
},
},
Middlewares: map[string]*dynamic.Middleware{},
Services: map[string]*dynamic.Service{
"Test": {
"dev-Test": {
LoadBalancer: &dynamic.ServersLoadBalancer{
Servers: []dynamic.Server{
{