is_named_volume also tests for home paths ~

Fix bug with VolumeSpec not being updated
Fix integration test

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2016-01-22 16:05:21 -08:00 committed by Aanand Prasad
commit 3da25aa463
3 changed files with 10 additions and 8 deletions

View file

@ -846,6 +846,7 @@ class ProjectTest(DockerClientTestCase):
self.assertEqual(len(volumes), 1)
self.assertEqual(volumes[0].external, full_vol_name)
project.up()
engine_volumes = self.client.volumes()
self.assertIsNone(next(v for v in engine_volumes if v['Name'] == vol_name))
self.assertIsNotNone(next(v for v in engine_volumes if v['Name'] == full_vol_name))
engine_volumes = self.client.volumes()['Volumes']
container = service.get_container()
assert [mount['Name'] for mount in container.get('Mounts')] == [full_vol_name]
assert next((v for v in engine_volumes if v['Name'] == vol_name), None) is None