-
Notifications
You must be signed in to change notification settings - Fork 290
🌱 add unit tests to SecretManager #2812
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
base: main
Are you sure you want to change the base?
Conversation
|
Skipping CI for Draft Pull Request. |
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.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
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.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
/cc @dtantsur @elfosardo |
Add unit tests to SecretManager. Signed-off-by: Tuomo Tanskanen <[email protected]>
584f620 to
9fe7f7a
Compare
|
Fixed similar issues as in source PR, and rebased. |
|
Its been long I have used these assertions. When something breaks in the code, would this output the reason of the failure as logs from the code or just the failure since I don't see any log outputs here. I mean the test itself is not generating any log but would it atleast propagate the failure log from the code itself it is testing ? |
kashifest
left a comment
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.
/approve
/hold
I have a question in line
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kashifest The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Unit tests should never log by design. They assert, which tell the failure reason. None of the unit tests in BMO or in our other repos print logs. |
Ok so it will propagate the failure reason. I was not meaning add logs here. My question was how assert handles the failure reason. /hold cancel |
|
lgtm |
Add unit tests to SecretManager, similar to IRSO's tests in metal3-io/ironic-standalone-operator#441 . Take some, give some!
Checklist: