From 593051848969fe7a69aa5e0815b0fc0b61a33268 Mon Sep 17 00:00:00 2001 From: Poonam Jadhav Date: Mon, 17 Jul 2023 09:44:49 -0400 Subject: [PATCH] fix: update delegateMock used in ENT (#18149) ### Description The mock is used in `http_ent_test` file which caused lint failures. For OSS->ENT parity adding the same change here. ### Links Identified in OSS->ENT [merge PR](https://github.com/hashicorp/consul-enterprise/pull/6328) ### PR Checklist * [ ] ~updated test coverage~ * [ ] ~external facing docs updated~ * [x] appropriate backport labels added * [ ] ~not a security concern~ --- agent/delegate_mock_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/agent/delegate_mock_test.go b/agent/delegate_mock_test.go index 9f91a6a0d9..7f0593473e 100644 --- a/agent/delegate_mock_test.go +++ b/agent/delegate_mock_test.go @@ -15,6 +15,7 @@ import ( "github.com/hashicorp/consul/agent/consul" "github.com/hashicorp/consul/agent/structs" "github.com/hashicorp/consul/lib" + "github.com/hashicorp/consul/proto-public/pbresource" ) type delegateMock struct { @@ -76,3 +77,7 @@ func (m *delegateMock) Stats() map[string]map[string]string { func (m *delegateMock) ReloadConfig(config consul.ReloadableConfig) error { return m.Called(config).Error(0) } + +func (m *delegateMock) ResourceServiceClient() pbresource.ResourceServiceClient { + return nil +}