Don't allow links or external_links in v2 files

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
Aanand Prasad 2016-01-12 17:26:18 +00:00
commit 70cce961a8
4 changed files with 23 additions and 6 deletions

View file

@ -268,8 +268,8 @@ class ConfigTest(unittest.TestCase):
{
'name': 'web',
'build': os.path.abspath('/'),
'links': ['db'],
'volumes': [VolumeSpec.parse('/home/user/project:/code')],
'links': ['db'],
},
{
'name': 'db',
@ -405,7 +405,6 @@ class ConfigTest(unittest.TestCase):
'services': {
'web': {
'image': 'example/web',
'links': ['db'],
},
'db': {
'image': 'example/db',
@ -431,7 +430,6 @@ class ConfigTest(unittest.TestCase):
'name': 'web',
'build': os.path.abspath('/'),
'image': 'example/web',
'links': ['db'],
'volumes': [VolumeSpec.parse('/home/user/project:/code')],
},
{