Browse Source

fix failing tests

pull/13596/head
Dhia Ayachi 2 years ago
parent
commit
b1406349e0
  1. 4
      agent/consul/internal_endpoint_test.go
  2. 1
      agent/proxycfg/state_test.go

4
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{},
},

1
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},

Loading…
Cancel
Save