Change the provider separator from . to @
This commit is contained in:
parent
4012599264
commit
e9792b446f
34 changed files with 465 additions and 465 deletions
|
@ -47,20 +47,20 @@ func TestHandlerTCP_API(t *testing.T) {
|
|||
path: "/api/tcp/routers",
|
||||
conf: config.RuntimeConfiguration{
|
||||
TCPRouters: map[string]*config.TCPRouterInfo{
|
||||
"myprovider.test": {
|
||||
"myprovider@test": {
|
||||
TCPRouter: &config.TCPRouter{
|
||||
EntryPoints: []string{"web"},
|
||||
Service: "myprovider.foo-service",
|
||||
Service: "myprovider@foo-service",
|
||||
Rule: "Host(`foo.bar.other`)",
|
||||
TLS: &config.RouterTCPTLSConfig{
|
||||
Passthrough: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
"myprovider.bar": {
|
||||
"myprovider@bar": {
|
||||
TCPRouter: &config.TCPRouter{
|
||||
EntryPoints: []string{"web"},
|
||||
Service: "myprovider.foo-service",
|
||||
Service: "myprovider@foo-service",
|
||||
Rule: "Host(`foo.bar`)",
|
||||
},
|
||||
},
|
||||
|
@ -77,24 +77,24 @@ func TestHandlerTCP_API(t *testing.T) {
|
|||
path: "/api/tcp/routers?page=2&per_page=1",
|
||||
conf: config.RuntimeConfiguration{
|
||||
TCPRouters: map[string]*config.TCPRouterInfo{
|
||||
"myprovider.bar": {
|
||||
"myprovider@bar": {
|
||||
TCPRouter: &config.TCPRouter{
|
||||
EntryPoints: []string{"web"},
|
||||
Service: "myprovider.foo-service",
|
||||
Service: "myprovider@foo-service",
|
||||
Rule: "Host(`foo.bar`)",
|
||||
},
|
||||
},
|
||||
"myprovider.baz": {
|
||||
"myprovider@baz": {
|
||||
TCPRouter: &config.TCPRouter{
|
||||
EntryPoints: []string{"web"},
|
||||
Service: "myprovider.foo-service",
|
||||
Service: "myprovider@foo-service",
|
||||
Rule: "Host(`toto.bar`)",
|
||||
},
|
||||
},
|
||||
"myprovider.test": {
|
||||
"myprovider@test": {
|
||||
TCPRouter: &config.TCPRouter{
|
||||
EntryPoints: []string{"web"},
|
||||
Service: "myprovider.foo-service",
|
||||
Service: "myprovider@foo-service",
|
||||
Rule: "Host(`foo.bar.other`)",
|
||||
},
|
||||
},
|
||||
|
@ -108,13 +108,13 @@ func TestHandlerTCP_API(t *testing.T) {
|
|||
},
|
||||
{
|
||||
desc: "one TCP router by id",
|
||||
path: "/api/tcp/routers/myprovider.bar",
|
||||
path: "/api/tcp/routers/myprovider@bar",
|
||||
conf: config.RuntimeConfiguration{
|
||||
TCPRouters: map[string]*config.TCPRouterInfo{
|
||||
"myprovider.bar": {
|
||||
"myprovider@bar": {
|
||||
TCPRouter: &config.TCPRouter{
|
||||
EntryPoints: []string{"web"},
|
||||
Service: "myprovider.foo-service",
|
||||
Service: "myprovider@foo-service",
|
||||
Rule: "Host(`foo.bar`)",
|
||||
},
|
||||
},
|
||||
|
@ -127,13 +127,13 @@ func TestHandlerTCP_API(t *testing.T) {
|
|||
},
|
||||
{
|
||||
desc: "one TCP router by id, that does not exist",
|
||||
path: "/api/tcp/routers/myprovider.foo",
|
||||
path: "/api/tcp/routers/myprovider@foo",
|
||||
conf: config.RuntimeConfiguration{
|
||||
TCPRouters: map[string]*config.TCPRouterInfo{
|
||||
"myprovider.bar": {
|
||||
"myprovider@bar": {
|
||||
TCPRouter: &config.TCPRouter{
|
||||
EntryPoints: []string{"web"},
|
||||
Service: "myprovider.foo-service",
|
||||
Service: "myprovider@foo-service",
|
||||
Rule: "Host(`foo.bar`)",
|
||||
},
|
||||
},
|
||||
|
@ -145,7 +145,7 @@ func TestHandlerTCP_API(t *testing.T) {
|
|||
},
|
||||
{
|
||||
desc: "one TCP router by id, but no config",
|
||||
path: "/api/tcp/routers/myprovider.bar",
|
||||
path: "/api/tcp/routers/myprovider@bar",
|
||||
conf: config.RuntimeConfiguration{},
|
||||
expected: expected{
|
||||
statusCode: http.StatusNotFound,
|
||||
|
@ -166,7 +166,7 @@ func TestHandlerTCP_API(t *testing.T) {
|
|||
path: "/api/tcp/services",
|
||||
conf: config.RuntimeConfiguration{
|
||||
TCPServices: map[string]*config.TCPServiceInfo{
|
||||
"myprovider.bar": {
|
||||
"myprovider@bar": {
|
||||
TCPService: &config.TCPService{
|
||||
LoadBalancer: &config.TCPLoadBalancerService{
|
||||
Servers: []config.TCPServer{
|
||||
|
@ -176,9 +176,9 @@ func TestHandlerTCP_API(t *testing.T) {
|
|||
},
|
||||
},
|
||||
},
|
||||
UsedBy: []string{"myprovider.foo", "myprovider.test"},
|
||||
UsedBy: []string{"myprovider@foo", "myprovider@test"},
|
||||
},
|
||||
"myprovider.baz": {
|
||||
"myprovider@baz": {
|
||||
TCPService: &config.TCPService{
|
||||
LoadBalancer: &config.TCPLoadBalancerService{
|
||||
Servers: []config.TCPServer{
|
||||
|
@ -188,7 +188,7 @@ func TestHandlerTCP_API(t *testing.T) {
|
|||
},
|
||||
},
|
||||
},
|
||||
UsedBy: []string{"myprovider.foo"},
|
||||
UsedBy: []string{"myprovider@foo"},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -203,7 +203,7 @@ func TestHandlerTCP_API(t *testing.T) {
|
|||
path: "/api/tcp/services?page=2&per_page=1",
|
||||
conf: config.RuntimeConfiguration{
|
||||
TCPServices: map[string]*config.TCPServiceInfo{
|
||||
"myprovider.bar": {
|
||||
"myprovider@bar": {
|
||||
TCPService: &config.TCPService{
|
||||
LoadBalancer: &config.TCPLoadBalancerService{
|
||||
Servers: []config.TCPServer{
|
||||
|
@ -213,9 +213,9 @@ func TestHandlerTCP_API(t *testing.T) {
|
|||
},
|
||||
},
|
||||
},
|
||||
UsedBy: []string{"myprovider.foo", "myprovider.test"},
|
||||
UsedBy: []string{"myprovider@foo", "myprovider@test"},
|
||||
},
|
||||
"myprovider.baz": {
|
||||
"myprovider@baz": {
|
||||
TCPService: &config.TCPService{
|
||||
LoadBalancer: &config.TCPLoadBalancerService{
|
||||
Servers: []config.TCPServer{
|
||||
|
@ -225,9 +225,9 @@ func TestHandlerTCP_API(t *testing.T) {
|
|||
},
|
||||
},
|
||||
},
|
||||
UsedBy: []string{"myprovider.foo"},
|
||||
UsedBy: []string{"myprovider@foo"},
|
||||
},
|
||||
"myprovider.test": {
|
||||
"myprovider@test": {
|
||||
TCPService: &config.TCPService{
|
||||
LoadBalancer: &config.TCPLoadBalancerService{
|
||||
Servers: []config.TCPServer{
|
||||
|
@ -248,10 +248,10 @@ func TestHandlerTCP_API(t *testing.T) {
|
|||
},
|
||||
{
|
||||
desc: "one tcp service by id",
|
||||
path: "/api/tcp/services/myprovider.bar",
|
||||
path: "/api/tcp/services/myprovider@bar",
|
||||
conf: config.RuntimeConfiguration{
|
||||
TCPServices: map[string]*config.TCPServiceInfo{
|
||||
"myprovider.bar": {
|
||||
"myprovider@bar": {
|
||||
TCPService: &config.TCPService{
|
||||
LoadBalancer: &config.TCPLoadBalancerService{
|
||||
Servers: []config.TCPServer{
|
||||
|
@ -261,7 +261,7 @@ func TestHandlerTCP_API(t *testing.T) {
|
|||
},
|
||||
},
|
||||
},
|
||||
UsedBy: []string{"myprovider.foo", "myprovider.test"},
|
||||
UsedBy: []string{"myprovider@foo", "myprovider@test"},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -272,10 +272,10 @@ func TestHandlerTCP_API(t *testing.T) {
|
|||
},
|
||||
{
|
||||
desc: "one tcp service by id, that does not exist",
|
||||
path: "/api/tcp/services/myprovider.nono",
|
||||
path: "/api/tcp/services/myprovider@nono",
|
||||
conf: config.RuntimeConfiguration{
|
||||
TCPServices: map[string]*config.TCPServiceInfo{
|
||||
"myprovider.bar": {
|
||||
"myprovider@bar": {
|
||||
TCPService: &config.TCPService{
|
||||
LoadBalancer: &config.TCPLoadBalancerService{
|
||||
Servers: []config.TCPServer{
|
||||
|
@ -285,7 +285,7 @@ func TestHandlerTCP_API(t *testing.T) {
|
|||
},
|
||||
},
|
||||
},
|
||||
UsedBy: []string{"myprovider.foo", "myprovider.test"},
|
||||
UsedBy: []string{"myprovider@foo", "myprovider@test"},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -295,7 +295,7 @@ func TestHandlerTCP_API(t *testing.T) {
|
|||
},
|
||||
{
|
||||
desc: "one tcp service by id, but no config",
|
||||
path: "/api/tcp/services/myprovider.foo",
|
||||
path: "/api/tcp/services/myprovider@foo",
|
||||
conf: config.RuntimeConfiguration{},
|
||||
expected: expected{
|
||||
statusCode: http.StatusNotFound,
|
||||
|
@ -379,20 +379,20 @@ func TestHandlerHTTP_API(t *testing.T) {
|
|||
path: "/api/http/routers",
|
||||
conf: config.RuntimeConfiguration{
|
||||
Routers: map[string]*config.RouterInfo{
|
||||
"myprovider.test": {
|
||||
"myprovider@test": {
|
||||
Router: &config.Router{
|
||||
EntryPoints: []string{"web"},
|
||||
Service: "myprovider.foo-service",
|
||||
Service: "myprovider@foo-service",
|
||||
Rule: "Host(`foo.bar.other`)",
|
||||
Middlewares: []string{"addPrefixTest", "auth"},
|
||||
},
|
||||
},
|
||||
"myprovider.bar": {
|
||||
"myprovider@bar": {
|
||||
Router: &config.Router{
|
||||
EntryPoints: []string{"web"},
|
||||
Service: "myprovider.foo-service",
|
||||
Service: "myprovider@foo-service",
|
||||
Rule: "Host(`foo.bar`)",
|
||||
Middlewares: []string{"auth", "anotherprovider.addPrefixTest"},
|
||||
Middlewares: []string{"auth", "anotherprovider@addPrefixTest"},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -408,25 +408,25 @@ func TestHandlerHTTP_API(t *testing.T) {
|
|||
path: "/api/http/routers?page=2&per_page=1",
|
||||
conf: config.RuntimeConfiguration{
|
||||
Routers: map[string]*config.RouterInfo{
|
||||
"myprovider.bar": {
|
||||
"myprovider@bar": {
|
||||
Router: &config.Router{
|
||||
EntryPoints: []string{"web"},
|
||||
Service: "myprovider.foo-service",
|
||||
Service: "myprovider@foo-service",
|
||||
Rule: "Host(`foo.bar`)",
|
||||
Middlewares: []string{"auth", "anotherprovider.addPrefixTest"},
|
||||
Middlewares: []string{"auth", "anotherprovider@addPrefixTest"},
|
||||
},
|
||||
},
|
||||
"myprovider.baz": {
|
||||
"myprovider@baz": {
|
||||
Router: &config.Router{
|
||||
EntryPoints: []string{"web"},
|
||||
Service: "myprovider.foo-service",
|
||||
Service: "myprovider@foo-service",
|
||||
Rule: "Host(`toto.bar`)",
|
||||
},
|
||||
},
|
||||
"myprovider.test": {
|
||||
"myprovider@test": {
|
||||
Router: &config.Router{
|
||||
EntryPoints: []string{"web"},
|
||||
Service: "myprovider.foo-service",
|
||||
Service: "myprovider@foo-service",
|
||||
Rule: "Host(`foo.bar.other`)",
|
||||
Middlewares: []string{"addPrefixTest", "auth"},
|
||||
},
|
||||
|
@ -473,15 +473,15 @@ func TestHandlerHTTP_API(t *testing.T) {
|
|||
},
|
||||
{
|
||||
desc: "one router by id",
|
||||
path: "/api/http/routers/myprovider.bar",
|
||||
path: "/api/http/routers/myprovider@bar",
|
||||
conf: config.RuntimeConfiguration{
|
||||
Routers: map[string]*config.RouterInfo{
|
||||
"myprovider.bar": {
|
||||
"myprovider@bar": {
|
||||
Router: &config.Router{
|
||||
EntryPoints: []string{"web"},
|
||||
Service: "myprovider.foo-service",
|
||||
Service: "myprovider@foo-service",
|
||||
Rule: "Host(`foo.bar`)",
|
||||
Middlewares: []string{"auth", "anotherprovider.addPrefixTest"},
|
||||
Middlewares: []string{"auth", "anotherprovider@addPrefixTest"},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -493,15 +493,15 @@ func TestHandlerHTTP_API(t *testing.T) {
|
|||
},
|
||||
{
|
||||
desc: "one router by id, that does not exist",
|
||||
path: "/api/http/routers/myprovider.foo",
|
||||
path: "/api/http/routers/myprovider@foo",
|
||||
conf: config.RuntimeConfiguration{
|
||||
Routers: map[string]*config.RouterInfo{
|
||||
"myprovider.bar": {
|
||||
"myprovider@bar": {
|
||||
Router: &config.Router{
|
||||
EntryPoints: []string{"web"},
|
||||
Service: "myprovider.foo-service",
|
||||
Service: "myprovider@foo-service",
|
||||
Rule: "Host(`foo.bar`)",
|
||||
Middlewares: []string{"auth", "anotherprovider.addPrefixTest"},
|
||||
Middlewares: []string{"auth", "anotherprovider@addPrefixTest"},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -512,7 +512,7 @@ func TestHandlerHTTP_API(t *testing.T) {
|
|||
},
|
||||
{
|
||||
desc: "one router by id, but no config",
|
||||
path: "/api/http/routers/myprovider.foo",
|
||||
path: "/api/http/routers/myprovider@foo",
|
||||
conf: config.RuntimeConfiguration{},
|
||||
expected: expected{
|
||||
statusCode: http.StatusNotFound,
|
||||
|
@ -533,7 +533,7 @@ func TestHandlerHTTP_API(t *testing.T) {
|
|||
path: "/api/http/services",
|
||||
conf: config.RuntimeConfiguration{
|
||||
Services: map[string]*config.ServiceInfo{
|
||||
"myprovider.bar": func() *config.ServiceInfo {
|
||||
"myprovider@bar": func() *config.ServiceInfo {
|
||||
si := &config.ServiceInfo{
|
||||
Service: &config.Service{
|
||||
LoadBalancer: &config.LoadBalancerService{
|
||||
|
@ -544,12 +544,12 @@ func TestHandlerHTTP_API(t *testing.T) {
|
|||
},
|
||||
},
|
||||
},
|
||||
UsedBy: []string{"myprovider.foo", "myprovider.test"},
|
||||
UsedBy: []string{"myprovider@foo", "myprovider@test"},
|
||||
}
|
||||
si.UpdateStatus("http://127.0.0.1", "UP")
|
||||
return si
|
||||
}(),
|
||||
"myprovider.baz": func() *config.ServiceInfo {
|
||||
"myprovider@baz": func() *config.ServiceInfo {
|
||||
si := &config.ServiceInfo{
|
||||
Service: &config.Service{
|
||||
LoadBalancer: &config.LoadBalancerService{
|
||||
|
@ -560,7 +560,7 @@ func TestHandlerHTTP_API(t *testing.T) {
|
|||
},
|
||||
},
|
||||
},
|
||||
UsedBy: []string{"myprovider.foo"},
|
||||
UsedBy: []string{"myprovider@foo"},
|
||||
}
|
||||
si.UpdateStatus("http://127.0.0.2", "UP")
|
||||
return si
|
||||
|
@ -578,7 +578,7 @@ func TestHandlerHTTP_API(t *testing.T) {
|
|||
path: "/api/http/services?page=2&per_page=1",
|
||||
conf: config.RuntimeConfiguration{
|
||||
Services: map[string]*config.ServiceInfo{
|
||||
"myprovider.bar": func() *config.ServiceInfo {
|
||||
"myprovider@bar": func() *config.ServiceInfo {
|
||||
si := &config.ServiceInfo{
|
||||
Service: &config.Service{
|
||||
LoadBalancer: &config.LoadBalancerService{
|
||||
|
@ -589,12 +589,12 @@ func TestHandlerHTTP_API(t *testing.T) {
|
|||
},
|
||||
},
|
||||
},
|
||||
UsedBy: []string{"myprovider.foo", "myprovider.test"},
|
||||
UsedBy: []string{"myprovider@foo", "myprovider@test"},
|
||||
}
|
||||
si.UpdateStatus("http://127.0.0.1", "UP")
|
||||
return si
|
||||
}(),
|
||||
"myprovider.baz": func() *config.ServiceInfo {
|
||||
"myprovider@baz": func() *config.ServiceInfo {
|
||||
si := &config.ServiceInfo{
|
||||
Service: &config.Service{
|
||||
LoadBalancer: &config.LoadBalancerService{
|
||||
|
@ -605,12 +605,12 @@ func TestHandlerHTTP_API(t *testing.T) {
|
|||
},
|
||||
},
|
||||
},
|
||||
UsedBy: []string{"myprovider.foo"},
|
||||
UsedBy: []string{"myprovider@foo"},
|
||||
}
|
||||
si.UpdateStatus("http://127.0.0.2", "UP")
|
||||
return si
|
||||
}(),
|
||||
"myprovider.test": func() *config.ServiceInfo {
|
||||
"myprovider@test": func() *config.ServiceInfo {
|
||||
si := &config.ServiceInfo{
|
||||
Service: &config.Service{
|
||||
LoadBalancer: &config.LoadBalancerService{
|
||||
|
@ -621,7 +621,7 @@ func TestHandlerHTTP_API(t *testing.T) {
|
|||
},
|
||||
},
|
||||
},
|
||||
UsedBy: []string{"myprovider.foo", "myprovider.test"},
|
||||
UsedBy: []string{"myprovider@foo", "myprovider@test"},
|
||||
}
|
||||
si.UpdateStatus("http://127.0.0.4", "UP")
|
||||
return si
|
||||
|
@ -636,10 +636,10 @@ func TestHandlerHTTP_API(t *testing.T) {
|
|||
},
|
||||
{
|
||||
desc: "one service by id",
|
||||
path: "/api/http/services/myprovider.bar",
|
||||
path: "/api/http/services/myprovider@bar",
|
||||
conf: config.RuntimeConfiguration{
|
||||
Services: map[string]*config.ServiceInfo{
|
||||
"myprovider.bar": func() *config.ServiceInfo {
|
||||
"myprovider@bar": func() *config.ServiceInfo {
|
||||
si := &config.ServiceInfo{
|
||||
Service: &config.Service{
|
||||
LoadBalancer: &config.LoadBalancerService{
|
||||
|
@ -650,7 +650,7 @@ func TestHandlerHTTP_API(t *testing.T) {
|
|||
},
|
||||
},
|
||||
},
|
||||
UsedBy: []string{"myprovider.foo", "myprovider.test"},
|
||||
UsedBy: []string{"myprovider@foo", "myprovider@test"},
|
||||
}
|
||||
si.UpdateStatus("http://127.0.0.1", "UP")
|
||||
return si
|
||||
|
@ -664,10 +664,10 @@ func TestHandlerHTTP_API(t *testing.T) {
|
|||
},
|
||||
{
|
||||
desc: "one service by id, that does not exist",
|
||||
path: "/api/http/services/myprovider.nono",
|
||||
path: "/api/http/services/myprovider@nono",
|
||||
conf: config.RuntimeConfiguration{
|
||||
Services: map[string]*config.ServiceInfo{
|
||||
"myprovider.bar": func() *config.ServiceInfo {
|
||||
"myprovider@bar": func() *config.ServiceInfo {
|
||||
si := &config.ServiceInfo{
|
||||
Service: &config.Service{
|
||||
LoadBalancer: &config.LoadBalancerService{
|
||||
|
@ -678,7 +678,7 @@ func TestHandlerHTTP_API(t *testing.T) {
|
|||
},
|
||||
},
|
||||
},
|
||||
UsedBy: []string{"myprovider.foo", "myprovider.test"},
|
||||
UsedBy: []string{"myprovider@foo", "myprovider@test"},
|
||||
}
|
||||
si.UpdateStatus("http://127.0.0.1", "UP")
|
||||
return si
|
||||
|
@ -691,7 +691,7 @@ func TestHandlerHTTP_API(t *testing.T) {
|
|||
},
|
||||
{
|
||||
desc: "one service by id, but no config",
|
||||
path: "/api/http/services/myprovider.foo",
|
||||
path: "/api/http/services/myprovider@foo",
|
||||
conf: config.RuntimeConfiguration{},
|
||||
expected: expected{
|
||||
statusCode: http.StatusNotFound,
|
||||
|
@ -712,29 +712,29 @@ func TestHandlerHTTP_API(t *testing.T) {
|
|||
path: "/api/http/middlewares",
|
||||
conf: config.RuntimeConfiguration{
|
||||
Middlewares: map[string]*config.MiddlewareInfo{
|
||||
"myprovider.auth": {
|
||||
"myprovider@auth": {
|
||||
Middleware: &config.Middleware{
|
||||
BasicAuth: &config.BasicAuth{
|
||||
Users: []string{"admin:admin"},
|
||||
},
|
||||
},
|
||||
UsedBy: []string{"myprovider.bar", "myprovider.test"},
|
||||
UsedBy: []string{"myprovider@bar", "myprovider@test"},
|
||||
},
|
||||
"myprovider.addPrefixTest": {
|
||||
"myprovider@addPrefixTest": {
|
||||
Middleware: &config.Middleware{
|
||||
AddPrefix: &config.AddPrefix{
|
||||
Prefix: "/titi",
|
||||
},
|
||||
},
|
||||
UsedBy: []string{"myprovider.test"},
|
||||
UsedBy: []string{"myprovider@test"},
|
||||
},
|
||||
"anotherprovider.addPrefixTest": {
|
||||
"anotherprovider@addPrefixTest": {
|
||||
Middleware: &config.Middleware{
|
||||
AddPrefix: &config.AddPrefix{
|
||||
Prefix: "/toto",
|
||||
},
|
||||
},
|
||||
UsedBy: []string{"myprovider.bar"},
|
||||
UsedBy: []string{"myprovider@bar"},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -749,29 +749,29 @@ func TestHandlerHTTP_API(t *testing.T) {
|
|||
path: "/api/http/middlewares?page=2&per_page=1",
|
||||
conf: config.RuntimeConfiguration{
|
||||
Middlewares: map[string]*config.MiddlewareInfo{
|
||||
"myprovider.auth": {
|
||||
"myprovider@auth": {
|
||||
Middleware: &config.Middleware{
|
||||
BasicAuth: &config.BasicAuth{
|
||||
Users: []string{"admin:admin"},
|
||||
},
|
||||
},
|
||||
UsedBy: []string{"myprovider.bar", "myprovider.test"},
|
||||
UsedBy: []string{"myprovider@bar", "myprovider@test"},
|
||||
},
|
||||
"myprovider.addPrefixTest": {
|
||||
"myprovider@addPrefixTest": {
|
||||
Middleware: &config.Middleware{
|
||||
AddPrefix: &config.AddPrefix{
|
||||
Prefix: "/titi",
|
||||
},
|
||||
},
|
||||
UsedBy: []string{"myprovider.test"},
|
||||
UsedBy: []string{"myprovider@test"},
|
||||
},
|
||||
"anotherprovider.addPrefixTest": {
|
||||
"anotherprovider@addPrefixTest": {
|
||||
Middleware: &config.Middleware{
|
||||
AddPrefix: &config.AddPrefix{
|
||||
Prefix: "/toto",
|
||||
},
|
||||
},
|
||||
UsedBy: []string{"myprovider.bar"},
|
||||
UsedBy: []string{"myprovider@bar"},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -783,32 +783,32 @@ func TestHandlerHTTP_API(t *testing.T) {
|
|||
},
|
||||
{
|
||||
desc: "one middleware by id",
|
||||
path: "/api/http/middlewares/myprovider.auth",
|
||||
path: "/api/http/middlewares/myprovider@auth",
|
||||
conf: config.RuntimeConfiguration{
|
||||
Middlewares: map[string]*config.MiddlewareInfo{
|
||||
"myprovider.auth": {
|
||||
"myprovider@auth": {
|
||||
Middleware: &config.Middleware{
|
||||
BasicAuth: &config.BasicAuth{
|
||||
Users: []string{"admin:admin"},
|
||||
},
|
||||
},
|
||||
UsedBy: []string{"myprovider.bar", "myprovider.test"},
|
||||
UsedBy: []string{"myprovider@bar", "myprovider@test"},
|
||||
},
|
||||
"myprovider.addPrefixTest": {
|
||||
"myprovider@addPrefixTest": {
|
||||
Middleware: &config.Middleware{
|
||||
AddPrefix: &config.AddPrefix{
|
||||
Prefix: "/titi",
|
||||
},
|
||||
},
|
||||
UsedBy: []string{"myprovider.test"},
|
||||
UsedBy: []string{"myprovider@test"},
|
||||
},
|
||||
"anotherprovider.addPrefixTest": {
|
||||
"anotherprovider@addPrefixTest": {
|
||||
Middleware: &config.Middleware{
|
||||
AddPrefix: &config.AddPrefix{
|
||||
Prefix: "/toto",
|
||||
},
|
||||
},
|
||||
UsedBy: []string{"myprovider.bar"},
|
||||
UsedBy: []string{"myprovider@bar"},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -819,16 +819,16 @@ func TestHandlerHTTP_API(t *testing.T) {
|
|||
},
|
||||
{
|
||||
desc: "one middleware by id, that does not exist",
|
||||
path: "/api/http/middlewares/myprovider.foo",
|
||||
path: "/api/http/middlewares/myprovider@foo",
|
||||
conf: config.RuntimeConfiguration{
|
||||
Middlewares: map[string]*config.MiddlewareInfo{
|
||||
"myprovider.auth": {
|
||||
"myprovider@auth": {
|
||||
Middleware: &config.Middleware{
|
||||
BasicAuth: &config.BasicAuth{
|
||||
Users: []string{"admin:admin"},
|
||||
},
|
||||
},
|
||||
UsedBy: []string{"myprovider.bar", "myprovider.test"},
|
||||
UsedBy: []string{"myprovider@bar", "myprovider@test"},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -838,7 +838,7 @@ func TestHandlerHTTP_API(t *testing.T) {
|
|||
},
|
||||
{
|
||||
desc: "one middleware by id, but no config",
|
||||
path: "/api/http/middlewares/myprovider.foo",
|
||||
path: "/api/http/middlewares/myprovider@foo",
|
||||
conf: config.RuntimeConfiguration{},
|
||||
expected: expected{
|
||||
statusCode: http.StatusNotFound,
|
||||
|
@ -912,7 +912,7 @@ func TestHandler_Configuration(t *testing.T) {
|
|||
path: "/api/rawdata",
|
||||
conf: config.RuntimeConfiguration{
|
||||
Services: map[string]*config.ServiceInfo{
|
||||
"myprovider.foo-service": {
|
||||
"myprovider@foo-service": {
|
||||
Service: &config.Service{
|
||||
LoadBalancer: &config.LoadBalancerService{
|
||||
Servers: []config.Server{
|
||||
|
@ -925,21 +925,21 @@ func TestHandler_Configuration(t *testing.T) {
|
|||
},
|
||||
},
|
||||
Middlewares: map[string]*config.MiddlewareInfo{
|
||||
"myprovider.auth": {
|
||||
"myprovider@auth": {
|
||||
Middleware: &config.Middleware{
|
||||
BasicAuth: &config.BasicAuth{
|
||||
Users: []string{"admin:admin"},
|
||||
},
|
||||
},
|
||||
},
|
||||
"myprovider.addPrefixTest": {
|
||||
"myprovider@addPrefixTest": {
|
||||
Middleware: &config.Middleware{
|
||||
AddPrefix: &config.AddPrefix{
|
||||
Prefix: "/titi",
|
||||
},
|
||||
},
|
||||
},
|
||||
"anotherprovider.addPrefixTest": {
|
||||
"anotherprovider@addPrefixTest": {
|
||||
Middleware: &config.Middleware{
|
||||
AddPrefix: &config.AddPrefix{
|
||||
Prefix: "/toto",
|
||||
|
@ -948,25 +948,25 @@ func TestHandler_Configuration(t *testing.T) {
|
|||
},
|
||||
},
|
||||
Routers: map[string]*config.RouterInfo{
|
||||
"myprovider.bar": {
|
||||
"myprovider@bar": {
|
||||
Router: &config.Router{
|
||||
EntryPoints: []string{"web"},
|
||||
Service: "myprovider.foo-service",
|
||||
Service: "myprovider@foo-service",
|
||||
Rule: "Host(`foo.bar`)",
|
||||
Middlewares: []string{"auth", "anotherprovider.addPrefixTest"},
|
||||
Middlewares: []string{"auth", "anotherprovider@addPrefixTest"},
|
||||
},
|
||||
},
|
||||
"myprovider.test": {
|
||||
"myprovider@test": {
|
||||
Router: &config.Router{
|
||||
EntryPoints: []string{"web"},
|
||||
Service: "myprovider.foo-service",
|
||||
Service: "myprovider@foo-service",
|
||||
Rule: "Host(`foo.bar.other`)",
|
||||
Middlewares: []string{"addPrefixTest", "auth"},
|
||||
},
|
||||
},
|
||||
},
|
||||
TCPServices: map[string]*config.TCPServiceInfo{
|
||||
"myprovider.tcpfoo-service": {
|
||||
"myprovider@tcpfoo-service": {
|
||||
TCPService: &config.TCPService{
|
||||
LoadBalancer: &config.TCPLoadBalancerService{
|
||||
Servers: []config.TCPServer{
|
||||
|
@ -979,17 +979,17 @@ func TestHandler_Configuration(t *testing.T) {
|
|||
},
|
||||
},
|
||||
TCPRouters: map[string]*config.TCPRouterInfo{
|
||||
"myprovider.tcpbar": {
|
||||
"myprovider@tcpbar": {
|
||||
TCPRouter: &config.TCPRouter{
|
||||
EntryPoints: []string{"web"},
|
||||
Service: "myprovider.tcpfoo-service",
|
||||
Service: "myprovider@tcpfoo-service",
|
||||
Rule: "HostSNI(`foo.bar`)",
|
||||
},
|
||||
},
|
||||
"myprovider.tcptest": {
|
||||
"myprovider@tcptest": {
|
||||
TCPRouter: &config.TCPRouter{
|
||||
EntryPoints: []string{"web"},
|
||||
Service: "myprovider.tcpfoo-service",
|
||||
Service: "myprovider@tcpfoo-service",
|
||||
Rule: "HostSNI(`foo.bar.other`)",
|
||||
},
|
||||
},
|
||||
|
@ -1054,10 +1054,10 @@ func TestHandler_Configuration(t *testing.T) {
|
|||
func generateHTTPRouters(nbRouters int) map[string]*config.RouterInfo {
|
||||
routers := make(map[string]*config.RouterInfo, nbRouters)
|
||||
for i := 0; i < nbRouters; i++ {
|
||||
routers[fmt.Sprintf("myprovider.bar%2d", i)] = &config.RouterInfo{
|
||||
routers[fmt.Sprintf("myprovider@bar%2d", i)] = &config.RouterInfo{
|
||||
Router: &config.Router{
|
||||
EntryPoints: []string{"web"},
|
||||
Service: "myprovider.foo-service",
|
||||
Service: "myprovider@foo-service",
|
||||
Rule: "Host(`foo.bar" + strconv.Itoa(i) + "`)",
|
||||
},
|
||||
}
|
||||
|
|
44
pkg/api/testdata/getrawdata.json
vendored
44
pkg/api/testdata/getrawdata.json
vendored
|
@ -1,17 +1,17 @@
|
|||
{
|
||||
"routers": {
|
||||
"myprovider.bar": {
|
||||
"myprovider@bar": {
|
||||
"entryPoints": [
|
||||
"web"
|
||||
],
|
||||
"middlewares": [
|
||||
"auth",
|
||||
"anotherprovider.addPrefixTest"
|
||||
"anotherprovider@addPrefixTest"
|
||||
],
|
||||
"service": "myprovider.foo-service",
|
||||
"service": "myprovider@foo-service",
|
||||
"rule": "Host(`foo.bar`)"
|
||||
},
|
||||
"myprovider.test": {
|
||||
"myprovider@test": {
|
||||
"entryPoints": [
|
||||
"web"
|
||||
],
|
||||
|
@ -19,41 +19,41 @@
|
|||
"addPrefixTest",
|
||||
"auth"
|
||||
],
|
||||
"service": "myprovider.foo-service",
|
||||
"service": "myprovider@foo-service",
|
||||
"rule": "Host(`foo.bar.other`)"
|
||||
}
|
||||
},
|
||||
"middlewares": {
|
||||
"anotherprovider.addPrefixTest": {
|
||||
"anotherprovider@addPrefixTest": {
|
||||
"addPrefix": {
|
||||
"prefix": "/toto"
|
||||
},
|
||||
"usedBy": [
|
||||
"myprovider.bar"
|
||||
"myprovider@bar"
|
||||
]
|
||||
},
|
||||
"myprovider.addPrefixTest": {
|
||||
"myprovider@addPrefixTest": {
|
||||
"addPrefix": {
|
||||
"prefix": "/titi"
|
||||
},
|
||||
"usedBy": [
|
||||
"myprovider.test"
|
||||
"myprovider@test"
|
||||
]
|
||||
},
|
||||
"myprovider.auth": {
|
||||
"myprovider@auth": {
|
||||
"basicAuth": {
|
||||
"users": [
|
||||
"admin:admin"
|
||||
]
|
||||
},
|
||||
"usedBy": [
|
||||
"myprovider.bar",
|
||||
"myprovider.test"
|
||||
"myprovider@bar",
|
||||
"myprovider@test"
|
||||
]
|
||||
}
|
||||
},
|
||||
"services": {
|
||||
"myprovider.foo-service": {
|
||||
"myprovider@foo-service": {
|
||||
"loadbalancer": {
|
||||
"servers": [
|
||||
{
|
||||
|
@ -63,29 +63,29 @@
|
|||
"passHostHeader": false
|
||||
},
|
||||
"usedBy": [
|
||||
"myprovider.bar",
|
||||
"myprovider.test"
|
||||
"myprovider@bar",
|
||||
"myprovider@test"
|
||||
]
|
||||
}
|
||||
},
|
||||
"tcpRouters": {
|
||||
"myprovider.tcpbar": {
|
||||
"myprovider@tcpbar": {
|
||||
"entryPoints": [
|
||||
"web"
|
||||
],
|
||||
"service": "myprovider.tcpfoo-service",
|
||||
"service": "myprovider@tcpfoo-service",
|
||||
"rule": "HostSNI(`foo.bar`)"
|
||||
},
|
||||
"myprovider.tcptest": {
|
||||
"myprovider@tcptest": {
|
||||
"entryPoints": [
|
||||
"web"
|
||||
],
|
||||
"service": "myprovider.tcpfoo-service",
|
||||
"service": "myprovider@tcpfoo-service",
|
||||
"rule": "HostSNI(`foo.bar.other`)"
|
||||
}
|
||||
},
|
||||
"tcpServices": {
|
||||
"myprovider.tcpfoo-service": {
|
||||
"myprovider@tcpfoo-service": {
|
||||
"loadbalancer": {
|
||||
"servers": [
|
||||
{
|
||||
|
@ -94,8 +94,8 @@
|
|||
]
|
||||
},
|
||||
"usedBy": [
|
||||
"myprovider.tcpbar",
|
||||
"myprovider.tcptest"
|
||||
"myprovider@tcpbar",
|
||||
"myprovider@tcptest"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
8
pkg/api/testdata/middleware-auth.json
vendored
8
pkg/api/testdata/middleware-auth.json
vendored
|
@ -4,10 +4,10 @@
|
|||
"admin:admin"
|
||||
]
|
||||
},
|
||||
"name": "myprovider.auth",
|
||||
"provider": "myprovider",
|
||||
"name": "myprovider@auth",
|
||||
"provider": "myprovider@auth",
|
||||
"usedBy": [
|
||||
"myprovider.bar",
|
||||
"myprovider.test"
|
||||
"myprovider@bar",
|
||||
"myprovider@test"
|
||||
]
|
||||
}
|
6
pkg/api/testdata/middlewares-page2.json
vendored
6
pkg/api/testdata/middlewares-page2.json
vendored
|
@ -3,10 +3,10 @@
|
|||
"addPrefix": {
|
||||
"prefix": "/titi"
|
||||
},
|
||||
"name": "myprovider.addPrefixTest",
|
||||
"provider": "myprovider",
|
||||
"name": "myprovider@addPrefixTest",
|
||||
"provider": "myprovider@addPrefixTest",
|
||||
"usedBy": [
|
||||
"myprovider.test"
|
||||
"myprovider@test"
|
||||
]
|
||||
}
|
||||
]
|
20
pkg/api/testdata/middlewares.json
vendored
20
pkg/api/testdata/middlewares.json
vendored
|
@ -3,20 +3,20 @@
|
|||
"addPrefix": {
|
||||
"prefix": "/toto"
|
||||
},
|
||||
"name": "anotherprovider.addPrefixTest",
|
||||
"provider": "anotherprovider",
|
||||
"name": "anotherprovider@addPrefixTest",
|
||||
"provider": "anotherprovider@addPrefixTest",
|
||||
"usedBy": [
|
||||
"myprovider.bar"
|
||||
"myprovider@bar"
|
||||
]
|
||||
},
|
||||
{
|
||||
"addPrefix": {
|
||||
"prefix": "/titi"
|
||||
},
|
||||
"name": "myprovider.addPrefixTest",
|
||||
"provider": "myprovider",
|
||||
"name": "myprovider@addPrefixTest",
|
||||
"provider": "myprovider@addPrefixTest",
|
||||
"usedBy": [
|
||||
"myprovider.test"
|
||||
"myprovider@test"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -25,11 +25,11 @@
|
|||
"admin:admin"
|
||||
]
|
||||
},
|
||||
"name": "myprovider.auth",
|
||||
"provider": "myprovider",
|
||||
"name": "myprovider@auth",
|
||||
"provider": "myprovider@auth",
|
||||
"usedBy": [
|
||||
"myprovider.bar",
|
||||
"myprovider.test"
|
||||
"myprovider@bar",
|
||||
"myprovider@test"
|
||||
]
|
||||
}
|
||||
]
|
8
pkg/api/testdata/router-bar.json
vendored
8
pkg/api/testdata/router-bar.json
vendored
|
@ -4,10 +4,10 @@
|
|||
],
|
||||
"middlewares": [
|
||||
"auth",
|
||||
"anotherprovider.addPrefixTest"
|
||||
"anotherprovider@addPrefixTest"
|
||||
],
|
||||
"name": "myprovider.bar",
|
||||
"provider": "myprovider",
|
||||
"name": "myprovider@bar",
|
||||
"provider": "myprovider@bar",
|
||||
"rule": "Host(`foo.bar`)",
|
||||
"service": "myprovider.foo-service"
|
||||
"service": "myprovider@foo-service"
|
||||
}
|
30
pkg/api/testdata/routers-many-lastpage.json
vendored
30
pkg/api/testdata/routers-many-lastpage.json
vendored
|
@ -3,45 +3,45 @@
|
|||
"entryPoints": [
|
||||
"web"
|
||||
],
|
||||
"name": "myprovider.bar14",
|
||||
"provider": "myprovider",
|
||||
"name": "myprovider@bar14",
|
||||
"provider": "myprovider@bar14",
|
||||
"rule": "Host(`foo.bar14`)",
|
||||
"service": "myprovider.foo-service"
|
||||
"service": "myprovider@foo-service"
|
||||
},
|
||||
{
|
||||
"entryPoints": [
|
||||
"web"
|
||||
],
|
||||
"name": "myprovider.bar15",
|
||||
"provider": "myprovider",
|
||||
"name": "myprovider@bar15",
|
||||
"provider": "myprovider@bar15",
|
||||
"rule": "Host(`foo.bar15`)",
|
||||
"service": "myprovider.foo-service"
|
||||
"service": "myprovider@foo-service"
|
||||
},
|
||||
{
|
||||
"entryPoints": [
|
||||
"web"
|
||||
],
|
||||
"name": "myprovider.bar16",
|
||||
"provider": "myprovider",
|
||||
"name": "myprovider@bar16",
|
||||
"provider": "myprovider@bar16",
|
||||
"rule": "Host(`foo.bar16`)",
|
||||
"service": "myprovider.foo-service"
|
||||
"service": "myprovider@foo-service"
|
||||
},
|
||||
{
|
||||
"entryPoints": [
|
||||
"web"
|
||||
],
|
||||
"name": "myprovider.bar17",
|
||||
"provider": "myprovider",
|
||||
"name": "myprovider@bar17",
|
||||
"provider": "myprovider@bar17",
|
||||
"rule": "Host(`foo.bar17`)",
|
||||
"service": "myprovider.foo-service"
|
||||
"service": "myprovider@foo-service"
|
||||
},
|
||||
{
|
||||
"entryPoints": [
|
||||
"web"
|
||||
],
|
||||
"name": "myprovider.bar18",
|
||||
"provider": "myprovider",
|
||||
"name": "myprovider@bar18",
|
||||
"provider": "myprovider@bar18",
|
||||
"rule": "Host(`foo.bar18`)",
|
||||
"service": "myprovider.foo-service"
|
||||
"service": "myprovider@foo-service"
|
||||
}
|
||||
]
|
6
pkg/api/testdata/routers-page2.json
vendored
6
pkg/api/testdata/routers-page2.json
vendored
|
@ -3,9 +3,9 @@
|
|||
"entryPoints": [
|
||||
"web"
|
||||
],
|
||||
"name": "myprovider.baz",
|
||||
"provider": "myprovider",
|
||||
"name": "myprovider@baz",
|
||||
"provider": "myprovider@baz",
|
||||
"rule": "Host(`toto.bar`)",
|
||||
"service": "myprovider.foo-service"
|
||||
"service": "myprovider@foo-service"
|
||||
}
|
||||
]
|
14
pkg/api/testdata/routers.json
vendored
14
pkg/api/testdata/routers.json
vendored
|
@ -5,12 +5,12 @@
|
|||
],
|
||||
"middlewares": [
|
||||
"auth",
|
||||
"anotherprovider.addPrefixTest"
|
||||
"anotherprovider@addPrefixTest"
|
||||
],
|
||||
"name": "myprovider.bar",
|
||||
"provider": "myprovider",
|
||||
"name": "myprovider@bar",
|
||||
"provider": "myprovider@bar",
|
||||
"rule": "Host(`foo.bar`)",
|
||||
"service": "myprovider.foo-service"
|
||||
"service": "myprovider@foo-service"
|
||||
},
|
||||
{
|
||||
"entryPoints": [
|
||||
|
@ -20,9 +20,9 @@
|
|||
"addPrefixTest",
|
||||
"auth"
|
||||
],
|
||||
"name": "myprovider.test",
|
||||
"provider": "myprovider",
|
||||
"name": "myprovider@test",
|
||||
"provider": "myprovider@test",
|
||||
"rule": "Host(`foo.bar.other`)",
|
||||
"service": "myprovider.foo-service"
|
||||
"service": "myprovider@foo-service"
|
||||
}
|
||||
]
|
8
pkg/api/testdata/service-bar.json
vendored
8
pkg/api/testdata/service-bar.json
vendored
|
@ -7,13 +7,13 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"name": "myprovider.bar",
|
||||
"provider": "myprovider",
|
||||
"name": "myprovider@bar",
|
||||
"provider": "myprovider@bar",
|
||||
"serverStatus": {
|
||||
"http://127.0.0.1": "UP"
|
||||
},
|
||||
"usedBy": [
|
||||
"myprovider.foo",
|
||||
"myprovider.test"
|
||||
"myprovider@foo",
|
||||
"myprovider@test"
|
||||
]
|
||||
}
|
6
pkg/api/testdata/services-page2.json
vendored
6
pkg/api/testdata/services-page2.json
vendored
|
@ -8,13 +8,13 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"name": "myprovider.baz",
|
||||
"provider": "myprovider",
|
||||
"name": "myprovider@baz",
|
||||
"provider": "myprovider@baz",
|
||||
"serverStatus": {
|
||||
"http://127.0.0.2": "UP"
|
||||
},
|
||||
"usedBy": [
|
||||
"myprovider.foo"
|
||||
"myprovider@foo"
|
||||
]
|
||||
}
|
||||
]
|
14
pkg/api/testdata/services.json
vendored
14
pkg/api/testdata/services.json
vendored
|
@ -8,14 +8,14 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"name": "myprovider.bar",
|
||||
"provider": "myprovider",
|
||||
"name": "myprovider@bar",
|
||||
"provider": "myprovider@bar",
|
||||
"serverStatus": {
|
||||
"http://127.0.0.1": "UP"
|
||||
},
|
||||
"usedBy": [
|
||||
"myprovider.foo",
|
||||
"myprovider.test"
|
||||
"myprovider@foo",
|
||||
"myprovider@test"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -27,13 +27,13 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"name": "myprovider.baz",
|
||||
"provider": "myprovider",
|
||||
"name": "myprovider@baz",
|
||||
"provider": "myprovider@baz",
|
||||
"serverStatus": {
|
||||
"http://127.0.0.2": "UP"
|
||||
},
|
||||
"usedBy": [
|
||||
"myprovider.foo"
|
||||
"myprovider@foo"
|
||||
]
|
||||
}
|
||||
]
|
6
pkg/api/testdata/tcprouter-bar.json
vendored
6
pkg/api/testdata/tcprouter-bar.json
vendored
|
@ -2,8 +2,8 @@
|
|||
"entryPoints": [
|
||||
"web"
|
||||
],
|
||||
"name": "myprovider.bar",
|
||||
"provider": "myprovider",
|
||||
"name": "myprovider@bar",
|
||||
"provider": "myprovider@bar",
|
||||
"rule": "Host(`foo.bar`)",
|
||||
"service": "myprovider.foo-service"
|
||||
"service": "myprovider@foo-service"
|
||||
}
|
6
pkg/api/testdata/tcprouters-page2.json
vendored
6
pkg/api/testdata/tcprouters-page2.json
vendored
|
@ -3,9 +3,9 @@
|
|||
"entryPoints": [
|
||||
"web"
|
||||
],
|
||||
"name": "myprovider.baz",
|
||||
"provider": "myprovider",
|
||||
"name": "myprovider@baz",
|
||||
"provider": "myprovider@baz",
|
||||
"rule": "Host(`toto.bar`)",
|
||||
"service": "myprovider.foo-service"
|
||||
"service": "myprovider@foo-service"
|
||||
}
|
||||
]
|
12
pkg/api/testdata/tcprouters.json
vendored
12
pkg/api/testdata/tcprouters.json
vendored
|
@ -3,19 +3,19 @@
|
|||
"entryPoints": [
|
||||
"web"
|
||||
],
|
||||
"name": "myprovider.bar",
|
||||
"provider": "myprovider",
|
||||
"name": "myprovider@bar",
|
||||
"provider": "myprovider@bar",
|
||||
"rule": "Host(`foo.bar`)",
|
||||
"service": "myprovider.foo-service"
|
||||
"service": "myprovider@foo-service"
|
||||
},
|
||||
{
|
||||
"entryPoints": [
|
||||
"web"
|
||||
],
|
||||
"name": "myprovider.test",
|
||||
"provider": "myprovider",
|
||||
"name": "myprovider@test",
|
||||
"provider": "myprovider@test",
|
||||
"rule": "Host(`foo.bar.other`)",
|
||||
"service": "myprovider.foo-service",
|
||||
"service": "myprovider@foo-service",
|
||||
"tls": {
|
||||
"passthrough": false
|
||||
}
|
||||
|
|
8
pkg/api/testdata/tcpservice-bar.json
vendored
8
pkg/api/testdata/tcpservice-bar.json
vendored
|
@ -6,10 +6,10 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"name": "myprovider.bar",
|
||||
"provider": "myprovider",
|
||||
"name": "myprovider@bar",
|
||||
"provider": "myprovider@bar",
|
||||
"usedBy": [
|
||||
"myprovider.foo",
|
||||
"myprovider.test"
|
||||
"myprovider@foo",
|
||||
"myprovider@test"
|
||||
]
|
||||
}
|
6
pkg/api/testdata/tcpservices-page2.json
vendored
6
pkg/api/testdata/tcpservices-page2.json
vendored
|
@ -7,10 +7,10 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"name": "myprovider.baz",
|
||||
"provider": "myprovider",
|
||||
"name": "myprovider@baz",
|
||||
"provider": "myprovider@baz",
|
||||
"usedBy": [
|
||||
"myprovider.foo"
|
||||
"myprovider@foo"
|
||||
]
|
||||
}
|
||||
]
|
14
pkg/api/testdata/tcpservices.json
vendored
14
pkg/api/testdata/tcpservices.json
vendored
|
@ -7,11 +7,11 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"name": "myprovider.bar",
|
||||
"provider": "myprovider",
|
||||
"name": "myprovider@bar",
|
||||
"provider": "myprovider@bar",
|
||||
"usedBy": [
|
||||
"myprovider.foo",
|
||||
"myprovider.test"
|
||||
"myprovider@foo",
|
||||
"myprovider@test"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -22,10 +22,10 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"name": "myprovider.baz",
|
||||
"provider": "myprovider",
|
||||
"name": "myprovider@baz",
|
||||
"provider": "myprovider@baz",
|
||||
"usedBy": [
|
||||
"myprovider.foo"
|
||||
"myprovider@foo"
|
||||
]
|
||||
}
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue