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

integration-cli: fix test to use busybox outside container #10799

Merged
merged 1 commit into from
Feb 14, 2015
Merged

integration-cli: fix test to use busybox outside container #10799

merged 1 commit into from
Feb 14, 2015

Conversation

ahmetb
Copy link
Contributor

@ahmetb ahmetb commented Feb 14, 2015

Fixes TestRmiForceWithExistingContainers test to make it use
busybox image rather than /docker-busybox hardcoded path
and rebuilding image.

TestRmiForceWithExistingContainers uses downloaded
/docker-busybox to build the image offline without networking.

For cases where test needs to run outside docker containers
(e.g. windows CI) it is okay for now to make network requests.
In that case, test now uses busybox image (or pull it first).

This fixes the test without changing in-container behavior.

Signed-off-by: Ahmet Alp Balkan ahmetalpbalkan@gmail.com
cc: @jfrazelle @duglin @unclejack @tianon @icecrime

@tianon
Copy link
Member

tianon commented Feb 14, 2015

IMO, we should update this test to instead just docker run -d busybox true, docker commit <container>, then use that image to run and thus test docker rmi -f (since we just need an image we can delete safely).

We really shouldn't be embedding /docker-busybox in the test itself at all, IMO.

@tianon
Copy link
Member

tianon commented Feb 14, 2015

(or in any test, for that matter)

@tianon
Copy link
Member

tianon commented Feb 14, 2015

Even slicker solution. Nice and simple; love it! ❤️

LGTM

@ahmetb
Copy link
Contributor Author

ahmetb commented Feb 14, 2015

Changed test to just use busybox. I didn't realize docker-busybox was tagged as busybox already. Thanks for suggestion.

Fixes TestRmiForceWithExistingContainers test to make it use
`busybox` image rather than /docker-busybox hardcoded path
and rebuilding image.

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
@tianon
Copy link
Member

tianon commented Feb 14, 2015

LGTM 👍

@tiborvass
Copy link
Contributor

LGTM

tiborvass added a commit that referenced this pull request Feb 14, 2015
…hExistingContainers-fix

integration-cli: fix test to use busybox outside container
@tiborvass tiborvass merged commit c33ac60 into moby:master Feb 14, 2015
@ahmetb ahmetb deleted the win-cli/TestRmiForceWithExistingContainers-fix branch February 14, 2015 20:49
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