Fix env_file and environment when used with extends.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2015-11-18 14:51:01 -05:00
commit 1e8f76767f
3 changed files with 60 additions and 13 deletions

View file

@ -46,7 +46,8 @@ class DockerClientTestCase(unittest.TestCase):
service_config = ServiceConfig('.', None, name, kwargs)
options = process_service(service_config)
options['environment'] = resolve_environment('.', kwargs)
options['environment'] = resolve_environment(
service_config._replace(config=options))
labels = options.setdefault('labels', {})
labels['com.docker.compose.test-name'] = self.id()