-
Notifications
You must be signed in to change notification settings - Fork 597
ErrNoSignaturesFound should be used when there is no signature attached to an image. #3526
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
Conversation
…ed to an image. Signed-off-by: zhaoyonghe <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3526 +/- ##
==========================================
+ Coverage 40.10% 40.46% +0.35%
==========================================
Files 155 155
Lines 10044 10044
==========================================
+ Hits 4028 4064 +36
+ Misses 5530 5491 -39
- Partials 486 489 +3 ☔ View full report in Codecov by Sentry. |
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.
Any test updates?
Signed-off-by: zhaoyonghe <[email protected]>
The current tests only check whether an error occurs or not. I do not see them checking the return error type and message. Therefore, this change should not break any current tests. |
What about adding a test that covers this code path? |
Yes. I can do that. Do you mean checking the exit code in the test scripts? Now we indeed return |
It can be simpler - Add a unit test that calls |
Signed-off-by: zhaoyonghe <[email protected]>
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.
Thanks!
Summary
This PR closes #3525.
Release Note
NONE
Documentation
No documentation change.