Require volumes_from a container to be explicit in V2 config.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2016-01-13 14:41:34 -05:00
commit b76dc1e05e
11 changed files with 166 additions and 53 deletions

View file

@ -77,7 +77,7 @@ class SortServiceTest(unittest.TestCase):
},
{
'name': 'parent',
'volumes_from': [VolumeFromSpec('child', 'rw')]
'volumes_from': [VolumeFromSpec('child', 'rw', 'service')]
},
{
'links': ['parent'],
@ -120,7 +120,7 @@ class SortServiceTest(unittest.TestCase):
},
{
'name': 'parent',
'volumes_from': [VolumeFromSpec('child', 'ro')]
'volumes_from': [VolumeFromSpec('child', 'ro', 'service')]
},
{
'name': 'child'
@ -145,7 +145,7 @@ class SortServiceTest(unittest.TestCase):
},
{
'name': 'two',
'volumes_from': [VolumeFromSpec('one', 'rw')]
'volumes_from': [VolumeFromSpec('one', 'rw', 'service')]
},
{
'name': 'one'