Small fixes and improvments
This commit is contained in:
parent
cc0733a4fa
commit
eb1ffae01b
5 changed files with 163 additions and 16 deletions
|
@ -87,6 +87,12 @@ func TestRancherGetFrontendRule(t *testing.T) {
|
|||
},
|
||||
expected: "Host:foo.rancher.localhost",
|
||||
},
|
||||
{
|
||||
service: rancherData{
|
||||
Name: "foo/bar",
|
||||
},
|
||||
expected: "Host:foo.bar.rancher.localhost",
|
||||
},
|
||||
{
|
||||
service: rancherData{
|
||||
Name: "test-service",
|
||||
|
@ -388,7 +394,7 @@ func TestRancherLoadRancherConfig(t *testing.T) {
|
|||
{
|
||||
services: []rancherData{
|
||||
{
|
||||
Name: "test-service",
|
||||
Name: "test/service",
|
||||
Labels: map[string]string{
|
||||
"traefik.port": "80",
|
||||
},
|
||||
|
@ -405,7 +411,7 @@ func TestRancherLoadRancherConfig(t *testing.T) {
|
|||
|
||||
Routes: map[string]types.Route{
|
||||
"route-frontend-Host-test-service-rancher-localhost": {
|
||||
Rule: "Host:test-service.rancher.localhost",
|
||||
Rule: "Host:test.service.rancher.localhost",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue