From b1406349e02741475cb270ad169495cf9501742a Mon Sep 17 00:00:00 2001 From: Dhia Ayachi Date: Thu, 23 Jun 2022 12:59:38 -0400 Subject: [PATCH] fix failing tests --- agent/consul/internal_endpoint_test.go | 4 ++++ agent/proxycfg/state_test.go | 1 + 2 files changed, 5 insertions(+) diff --git a/agent/consul/internal_endpoint_test.go b/agent/consul/internal_endpoint_test.go index 579d0e4c52..4f96aad578 100644 --- a/agent/consul/internal_endpoint_test.go +++ b/agent/consul/internal_endpoint_test.go @@ -2742,6 +2742,8 @@ func TestInternal_ServiceGatewayService_Terminating(t *testing.T) { ServiceMeta: map[string]string{}, EnterpriseMeta: *acl.DefaultEnterpriseMeta(), RaftIndex: structs.RaftIndex{}, + Address: "127.0.0.1", + Datacenter: "dc1", }, } assert.Equal(t, expect, serviceNodes) @@ -3025,6 +3027,8 @@ func TestInternal_ServiceGatewayService_Terminating_Destination(t *testing.T) { ServicePort: 443, ServiceTags: []string{}, ServiceMeta: map[string]string{}, + Address: "127.0.0.1", + Datacenter: "dc1", EnterpriseMeta: *acl.DefaultEnterpriseMeta(), RaftIndex: structs.RaftIndex{}, }, diff --git a/agent/proxycfg/state_test.go b/agent/proxycfg/state_test.go index 1f80f63180..00360d5b26 100644 --- a/agent/proxycfg/state_test.go +++ b/agent/proxycfg/state_test.go @@ -125,6 +125,7 @@ func recordWatches(sc *stateConfig) *watchRecorder { Datacenters: typedWatchRecorder[*structs.DatacentersRequest]{wr}, FederationStateListMeshGateways: typedWatchRecorder[*structs.DCSpecificRequest]{wr}, GatewayServices: typedWatchRecorder[*structs.ServiceSpecificRequest]{wr}, + ServiceGateways: typedWatchRecorder[*structs.ServiceSpecificRequest]{wr}, Health: typedWatchRecorder[*structs.ServiceSpecificRequest]{wr}, HTTPChecks: typedWatchRecorder[*cachetype.ServiceHTTPChecksRequest]{wr}, Intentions: typedWatchRecorder[*structs.IntentionQueryRequest]{wr},