Make volumes_from and net containers first class dependencies#1076
Make volumes_from and net containers first class dependencies#1076aanand merged 1 commit intodocker:masterfrom gilclark:master
Conversation
assure that starting order is correct. Added supporting unit and integration tests as well. Signed-off-by: Gil Clark <gilclark1@gmail.com>
There was a problem hiding this comment.
If any of these tests fail the containers won't get killed or removed, which I guess is also a problem with many of the existing tests.
We should probably add
def setUp(self):
self.cleanup_projects = []
def tearDown(self):
for project in self.cleanup_projects:
project.kill()
project.remove_stopped()And in each test case that uses this, add the project to the list immediately after creating it.
project = ...
self.cleanup_projects.append(project)|
LGTM One issue with testing, which is actually a problem with many of the tests we have in that module already, so I guess it's not critical that it gets fixed in this branch. |
|
I did notice that. I have to clean up a lot of containers after the tests. I did worry that containers that aren't cleaned up would pollute and fail the following tests or a rerun of the same tests but I've never seen that happen. |
|
Looks like the build passes: https://app.wercker.com/#build/54fa1d90d56c0f8a1d034e24 LGTM |
Make volumes_from and net containers first class dependencies
|
Hmm, build passes on Wercker but I get this locally: |
|
I think this might be related moby/moby#9340 Seems like there is some condition where links can cause |
|
Yep. See #1108. |
Make volumes_from and net containers first class dependencies Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
Make volumes_from and net containers first class dependencies and assure that starting order is correct. Added supporting unit and integration tests as well.
Signed-off-by: Gil Clark gilclark1@gmail.com