Improve error on router without service.

Co-authored-by: Mathieu Lonjaret <mathieu.lonjaret@gmail.com>
This commit is contained in:
Ludovic Fernandez 2019-07-19 16:42:04 +02:00 committed by Traefiker Bot
parent c39a550b00
commit 1800b0b69c
13 changed files with 125 additions and 40 deletions

View file

@ -85,6 +85,7 @@ func TestHandler_Overview(t *testing.T) {
Users: []string{"admin:admin"},
},
},
Status: runtime.StatusEnabled,
},
"addPrefixTest@myprovider": {
Middleware: &dynamic.Middleware{
@ -99,7 +100,8 @@ func TestHandler_Overview(t *testing.T) {
Prefix: "/toto",
},
},
Err: []string{"error"},
Err: []string{"error"},
Status: runtime.StatusDisabled,
},
},
Routers: map[string]*runtime.RouterInfo{