From bb160e278add12ad4278be71205faef0306e659a Mon Sep 17 00:00:00 2001 From: lei shi Date: Thu, 16 Nov 2023 09:03:13 -0800 Subject: [PATCH] rebase and add a test --- .../plugins/ocr2keeper/evm21/mercury/mercury_test.go | 10 ++++++++++ .../ocr2/plugins/ocr2keeper/integration_21_test.go | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/core/services/ocr2/plugins/ocr2keeper/evm21/mercury/mercury_test.go b/core/services/ocr2/plugins/ocr2keeper/evm21/mercury/mercury_test.go index a64ba859fae..baa939dbecc 100644 --- a/core/services/ocr2/plugins/ocr2keeper/evm21/mercury/mercury_test.go +++ b/core/services/ocr2/plugins/ocr2keeper/evm21/mercury/mercury_test.go @@ -25,6 +25,16 @@ func TestGenerateHMACFn(t *testing.T) { ts: 1234567890, expected: "17b0bb6b14f7b48ef9d24f941ff8f33ad2d5e94ac343380be02c2f1ca32fdbd8", }, + { + name: "generate hmac function with non-empty body", + method: "POST", + path: "/api", + body: []byte("request body"), + clientId: "anotherClientId", + secret: "anotherSecret", + ts: 1597534567, + expected: "d326c168c50c996e271d6b3b4c97944db01163994090f73fcf4fd42f23f06bbb", + }, } for _, tc := range testCases { diff --git a/core/services/ocr2/plugins/ocr2keeper/integration_21_test.go b/core/services/ocr2/plugins/ocr2keeper/integration_21_test.go index d2ab823ba63..f4fbf24f419 100644 --- a/core/services/ocr2/plugins/ocr2keeper/integration_21_test.go +++ b/core/services/ocr2/plugins/ocr2keeper/integration_21_test.go @@ -35,9 +35,9 @@ import ( "github.com/smartcontractkit/ocr2keepers/pkg/v3/config" relaytypes "github.com/smartcontractkit/chainlink-relay/pkg/types" - "github.com/smartcontractkit/chainlink/v2/core/assets" "github.com/smartcontractkit/chainlink/v2/core/chains/evm/assets" + "github.com/smartcontractkit/chainlink/v2/core/chains/evm/logpoller" automationForwarderLogic "github.com/smartcontractkit/chainlink/v2/core/gethwrappers/generated/automation_forwarder_logic" "github.com/smartcontractkit/chainlink/v2/core/gethwrappers/generated/basic_upkeep_contract"