Remove the trailing dot if the domain is not defined.
This commit is contained in:
parent
638960284e
commit
c7df82e695
8 changed files with 46 additions and 15 deletions
|
@ -52,7 +52,7 @@ func TestBuildConfiguration(t *testing.T) {
|
|||
Backend: "backend-instance",
|
||||
Routes: map[string]types.Route{
|
||||
"route-frontend-instance": {
|
||||
Rule: "Host:instance.",
|
||||
Rule: "Host:instance",
|
||||
},
|
||||
},
|
||||
PassHostHeader: true,
|
||||
|
@ -99,7 +99,7 @@ func TestBuildConfiguration(t *testing.T) {
|
|||
Backend: "backend-instance",
|
||||
Routes: map[string]types.Route{
|
||||
"route-frontend-instance": {
|
||||
Rule: "Host:instance.",
|
||||
Rule: "Host:instance",
|
||||
},
|
||||
},
|
||||
PassHostHeader: true,
|
||||
|
@ -144,7 +144,7 @@ func TestBuildConfiguration(t *testing.T) {
|
|||
Backend: "backend-instance",
|
||||
Routes: map[string]types.Route{
|
||||
"route-frontend-instance": {
|
||||
Rule: "Host:instance.",
|
||||
Rule: "Host:instance",
|
||||
},
|
||||
},
|
||||
Auth: &types.Auth{
|
||||
|
@ -195,7 +195,7 @@ func TestBuildConfiguration(t *testing.T) {
|
|||
Backend: "backend-instance",
|
||||
Routes: map[string]types.Route{
|
||||
"route-frontend-instance": {
|
||||
Rule: "Host:instance.",
|
||||
Rule: "Host:instance",
|
||||
},
|
||||
},
|
||||
Auth: &types.Auth{
|
||||
|
@ -246,7 +246,7 @@ func TestBuildConfiguration(t *testing.T) {
|
|||
Backend: "backend-instance",
|
||||
Routes: map[string]types.Route{
|
||||
"route-frontend-instance": {
|
||||
Rule: "Host:instance.",
|
||||
Rule: "Host:instance",
|
||||
},
|
||||
},
|
||||
Auth: &types.Auth{
|
||||
|
@ -305,7 +305,7 @@ func TestBuildConfiguration(t *testing.T) {
|
|||
Backend: "backend-instance",
|
||||
Routes: map[string]types.Route{
|
||||
"route-frontend-instance": {
|
||||
Rule: "Host:instance.",
|
||||
Rule: "Host:instance",
|
||||
},
|
||||
},
|
||||
Auth: &types.Auth{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue