Use VolumeSpec instead of re-parsing the volume string.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
c4f59e731d
commit
e6755d1e7c
2 changed files with 13 additions and 10 deletions
|
|
@ -545,11 +545,11 @@ class ServiceVolumesTest(unittest.TestCase):
|
|||
self.assertEqual(binding, ('/inside', '/outside:/inside:rw'))
|
||||
|
||||
def test_get_container_data_volumes(self):
|
||||
options = [
|
||||
options = [parse_volume_spec(v) for v in [
|
||||
'/host/volume:/host/volume:ro',
|
||||
'/new/volume',
|
||||
'/existing/volume',
|
||||
]
|
||||
]]
|
||||
|
||||
self.mock_client.inspect_image.return_value = {
|
||||
'ContainerConfig': {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue