Ensure that the config output by config command never contains python objects.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2016-01-14 17:30:48 -05:00
commit 1bfbba36b2
5 changed files with 53 additions and 20 deletions

View file

@ -177,12 +177,16 @@ class CLITestCase(DockerClientTestCase):
'networks': {'front': {}},
'services': {
'web': {
'build': os.path.abspath(self.base_dir),
'build': {
'context': os.path.abspath(self.base_dir),
},
'networks': ['front', 'default'],
'volumes_from': ['service:other:rw'],
},
'other': {
'image': 'busybox:latest',
'command': 'top',
'volumes': ['/data:rw'],
},
},
}