-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding InstanceAppFactoryWithKeystoreMock for shell_local tests #15167
Adding InstanceAppFactoryWithKeystoreMock for shell_local tests #15167
Conversation
if err != nil { | ||
return nil, fmt.Errorf("error authenticating keystore: %w", err) | ||
} | ||
return f.App, nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also add err = keyStore.CSA().EnsureKey(ctx)
?
(See https://github.com/smartcontractkit/chainlink/pull/15040/files#diff-1d22c137e223ec960bb1341e18d1a7ca6858111c67cfc3ee09f1b4da18904c96R205)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do want to ensure the csa key for beholder, but testing the unlock via password mechanism of the keystore seems a separate concern to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok 👍
* Bump chainlink-common to PR latest * Wire up Beholder auth in loop * Move keystore auth into NewApplication * Wire up CSA Auth for Beholder * Use simplified auth header approach * Add auth header after logging config * Remove empty line for linter * Put back mistakenly removed imports * Update to latest chainlink-common@INFOPLAT-1071-beholder-csa-signer-auth_2 * Rename return vars Co-authored-by: Jordan Krage <[email protected]> * Bump chainlink-common from latest INFOPLAT-1071-beholder-csa-signer-auth_2 * Bump chainlink-common to latest INFOPLAT-1071-beholder-csa-signer-auth_2 * Bump chainlink-common to latest INFOPLAT-1071-beholder-csa-signer-auth_2 * go mod tidy for ./integration-tests * make gomodtidy * Add changeset file * Potential test fix * Clean up the test: remove a few unused mocks * Revert "Clean up the test: remove a few unused mocks" This reverts commit f55cc8e. * Revert "Potential test fix" This reverts commit cb348aa. * Adding InstanceAppFactoryWithKeystoreMock for shell_local tests (#15167) * Revert "remove go.mod replace with real version (#15142)" This reverts commit d61ce51. * Run go mod tidy * Add Beholder auth to deployment LoopRegistry * Update chainlink-common to PR latest * Run go mod tidy * Prep keystore for beholder auth * Bump chainlink-common to latest * Run go mod tidy --------- Co-authored-by: 4of9 <[email protected]> Co-authored-by: Geert G <[email protected]> Co-authored-by: Jordan Krage <[email protected]> Co-authored-by: patrickhuie19 <[email protected]> Co-authored-by: krehermann <[email protected]>
Requires
Supports