mirror of https://github.com/docker/docker-py.git
Fix integration test regression
The test for starting a container with volume binds hadn't been updated to use the new dictionary structure for the `binds` argument.
This commit is contained in:
parent
73434476b3
commit
fdd39a85cc
|
@ -149,7 +149,15 @@ class TestCreateContainerWithBinds(BaseTestCase):
|
||||||
['ls', mount_dest], volumes={mount_dest: {}}
|
['ls', mount_dest], volumes={mount_dest: {}}
|
||||||
)
|
)
|
||||||
container_id = container['Id']
|
container_id = container['Id']
|
||||||
self.client.start(container_id, binds={mount_origin: mount_dest})
|
self.client.start(
|
||||||
|
container_id,
|
||||||
|
binds={
|
||||||
|
mount_origin: {
|
||||||
|
'bind': mount_dest,
|
||||||
|
'ro': False,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
)
|
||||||
self.tmp_containers.append(container_id)
|
self.tmp_containers.append(container_id)
|
||||||
exitcode = self.client.wait(container_id)
|
exitcode = self.client.wait(container_id)
|
||||||
self.assertEqual(exitcode, 0)
|
self.assertEqual(exitcode, 0)
|
||||||
|
|
Loading…
Reference in New Issue