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

Extract and improve test helpers #181

Merged
merged 4 commits into from
Apr 18, 2016
Merged

Extract and improve test helpers #181

merged 4 commits into from
Apr 18, 2016

Conversation

rosenhouse
Copy link
Contributor

@rosenhouse rosenhouse commented Apr 18, 2016

As we backfill tests, it is useful to extract a common package of test helpers.

This PR pulls some basic test harness code out of loopback and ns package test suites and makes them available for other tests.

Because the test helpers contain some non-trivial code (syscalls for unshare, mount, etc), I've backfilled unit tests of the test helpers themselves. Those backfilled tests exposed a couple bugs in MakeNetworkNS, which I've fixed in the final commit.

You can see the test failures in Travis on the second-to-last commit, and then the fix on the final commit.

Happy to squash those last two if you prefer.

@zachgersh zachgersh merged commit 616702b into containernetworking:master Apr 18, 2016
@rosenhouse rosenhouse deleted the testhelpers-extraction branch April 18, 2016 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants