-
Notifications
You must be signed in to change notification settings - Fork 214
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
Pod tests #177
Conversation
Codecov Report
@@ Coverage Diff @@
## master #177 +/- ##
=========================================
+ Coverage 82.41% 84.12% +1.7%
=========================================
Files 9 9
Lines 529 529
=========================================
+ Hits 436 445 +9
+ Misses 68 65 -3
+ Partials 25 19 -6
Continue to review full report at Codecov.
|
Thanks for the submission @willfairwinds! We'll take a look this week but so far seems pretty straight forward. |
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.
Awesome work! Just one comment on expected vs actual values.
You'll also need to sign the CLA before merging - you should see a link on this page.
pkg/validator/pod_test.go
Outdated
|
||
actualPodResult := ValidatePod(c, &pod.Spec) | ||
|
||
assert.Equal(t, len(actualPodResult.ContainerResults), 1, "should be equal") |
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.
Expected and actual are flipped here (1
is the expected value). Same above and below
🎉 Looks good to me! CLA wants you to sign again for some reason, but once that's done you're good to merge. Thanks again! |
Added pod tests for configured Host IPC, Host PID, and Host Newtowrk, also fixed order of expected and actual results in the original test and all others.