fix ent error (#8750)

This commit is contained in:
Hans Hasselberg 2020-09-25 17:31:42 +02:00 committed by GitHub
parent 069d56797f
commit 98d7ea82bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -802,5 +802,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])
}