Skip to content

Commit

Permalink
rebase and add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
shileiwill committed Nov 16, 2023
1 parent 0b3a28c commit bb160e2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit bb160e2

Please sign in to comment.