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
Add profile binding unit tests #402
Add profile binding unit tests #402
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: saschagrunert The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -173,7 +173,7 @@ func (p *podSeccompBinder) getSeccompProfile( | |||
err = util.Retry( | |||
func() (retryErr error) { | |||
seccompProfile, retryErr = p.GetSeccompProfile(ctx, key) | |||
if err != nil { | |||
if retryErr != 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.
Whoops, that's a bug.
Adding unit test cases to the binding webhook. This also fixes a bug where the binding error did not get returned correctly which would cause the webhook to crash. Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
da41677
to
09e51b7
Compare
Codecov Report
@@ Coverage Diff @@
## master #402 +/- ##
==========================================
+ Coverage 30.37% 38.08% +7.70%
==========================================
Files 20 20
Lines 948 948
==========================================
+ Hits 288 361 +73
+ Misses 650 572 -78
- Partials 10 15 +5 |
/lgtm |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Adding unit test cases to the binding webhook.
This also fixes a bug where the binding error did not get returned
correctly which would cause the webhook to crash.
Which issue(s) this PR fixes:
None
Does this PR have test?
Yes
Special notes for your reviewer:
None
Does this PR introduce a user-facing change?