Small fixes and improvments

This commit is contained in:
Manuel Laufenberg 2017-02-20 20:41:28 +01:00 committed by Emile Vauge
parent cc0733a4fa
commit eb1ffae01b
No known key found for this signature in database
GPG key ID: D808B4C167352E59
5 changed files with 163 additions and 16 deletions

View file

@ -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",
},
},
},