From 4e645c35eb8eb31e9390021c3426b211d19e80da Mon Sep 17 00:00:00 2001 From: Dhia Ayachi Date: Thu, 23 Jun 2022 16:53:11 -0400 Subject: [PATCH] fix failing tests --- agent/proxycfg/testing_tproxy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/proxycfg/testing_tproxy.go b/agent/proxycfg/testing_tproxy.go index da34f5f321..e207171b4a 100644 --- a/agent/proxycfg/testing_tproxy.go +++ b/agent/proxycfg/testing_tproxy.go @@ -574,7 +574,7 @@ func TestConfigSnapshotTransparentProxyDestination(t testing.T) *ConfigSnapshot CorrelationID: DestinationGatewayID + googleUID.String(), Result: &structs.IndexedServiceNodes{ ServiceNodes: []*structs.ServiceNode{ - {Node: "node1", ServiceName: "tgtw1", ServiceTaggedAddresses: map[string]structs.ServiceAddress{structs.TaggedAddressLANIPv4: {Address: "172.168.0.1", Port: 8443}}}, + {Node: "node1", ServiceName: "tgtw1", ServiceKind: structs.ServiceKindTerminatingGateway, ServiceTaggedAddresses: map[string]structs.ServiceAddress{structs.TaggedAddressLANIPv4: {Address: "172.168.0.1", Port: 8443}}}, }, }, }, @@ -582,7 +582,7 @@ func TestConfigSnapshotTransparentProxyDestination(t testing.T) *ConfigSnapshot CorrelationID: DestinationGatewayID + kafkaUID.String(), Result: &structs.IndexedServiceNodes{ ServiceNodes: []*structs.ServiceNode{ - {Node: "node1", ServiceName: "tgtw1", ServiceTaggedAddresses: map[string]structs.ServiceAddress{structs.TaggedAddressLANIPv4: {Address: "172.168.0.1", Port: 8443}}}, + {Node: "node1", ServiceName: "tgtw1", ServiceKind: structs.ServiceKindTerminatingGateway, ServiceTaggedAddresses: map[string]structs.ServiceAddress{structs.TaggedAddressLANIPv4: {Address: "172.168.0.1", Port: 8443}}}, }, }, },