fix ent error (#8750)

This commit is contained in:
Hans Hasselberg 2020-09-25 17:31:42 +02:00 committed by R.B. Boyer
parent 010abda64c
commit 780d2d79fb
1 changed files with 2 additions and 1 deletions

View File

@ -706,5 +706,6 @@ func TestUIEndpoint_modifySummaryForGatewayService_UseRequestedDCInsteadOfConfig
sum := ServiceSummary{GatewayConfig: GatewayConfig{}}
gwsvc := structs.GatewayService{Service: structs.ServiceName{Name: "test"}, Port: 42}
modifySummaryForGatewayService(&cfg, dc, &sum, &gwsvc)
require.Equal(t, "test.ingress.dc2.consul:42", sum.GatewayConfig.Addresses[0])
expected := serviceCanonicalDNSName("test", "ingress", "dc2", "consul", nil) + ":42"
require.Equal(t, expected, sum.GatewayConfig.Addresses[0])
}