Skip to content
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

Merged
merged 7 commits into from
Jul 25, 2019
Merged

Pod tests #177

merged 7 commits into from
Jul 25, 2019

Conversation

willfairwinds
Copy link
Contributor

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.

@CLAassistant
Copy link

CLAassistant commented Jul 24, 2019

CLA assistant check
All committers have signed the CLA.

@codecov
Copy link

codecov bot commented Jul 24, 2019

Codecov Report

Merging #177 into master will increase coverage by 1.7%.
The diff coverage is n/a.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
pkg/validator/pod.go 100% <0%> (+23.07%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update edccf88...4c04ce4. Read the comment docs.

@endzyme
Copy link
Contributor

endzyme commented Jul 24, 2019

Thanks for the submission @willfairwinds! We'll take a look this week but so far seems pretty straight forward.

Copy link
Contributor

@rbren rbren left a 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.


actualPodResult := ValidatePod(c, &pod.Spec)

assert.Equal(t, len(actualPodResult.ContainerResults), 1, "should be equal")
Copy link
Contributor

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

@rbren
Copy link
Contributor

rbren commented Jul 24, 2019

🎉 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!

@rbren rbren merged commit 819b77a into master Jul 25, 2019
@willfairwinds willfairwinds deleted the pod-test branch July 31, 2019 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants