Merge pull request #2350 from dnephin/remove_name_from_schema
Remove name field from the config schema
This commit is contained in:
commit
a746d673b1
6 changed files with 74 additions and 69 deletions
|
|
@ -9,6 +9,7 @@ from .. import unittest
|
|||
from compose.cli.docker_client import docker_client
|
||||
from compose.config.config import process_service
|
||||
from compose.config.config import resolve_environment
|
||||
from compose.config.config import ServiceConfig
|
||||
from compose.const import LABEL_PROJECT
|
||||
from compose.progress_stream import stream_output
|
||||
from compose.service import Service
|
||||
|
|
@ -43,15 +44,13 @@ class DockerClientTestCase(unittest.TestCase):
|
|||
if 'command' not in kwargs:
|
||||
kwargs['command'] = ["top"]
|
||||
|
||||
# TODO: remove this once #2299 is fixed
|
||||
kwargs['name'] = name
|
||||
|
||||
options = process_service('.', kwargs)
|
||||
service_config = ServiceConfig('.', None, name, kwargs)
|
||||
options = process_service(service_config)
|
||||
options['environment'] = resolve_environment('.', kwargs)
|
||||
labels = options.setdefault('labels', {})
|
||||
labels['com.docker.compose.test-name'] = self.id()
|
||||
|
||||
return Service(client=self.client, project='composetest', **options)
|
||||
return Service(name, client=self.client, project='composetest', **options)
|
||||
|
||||
def check_build(self, *args, **kwargs):
|
||||
kwargs.setdefault('rm', True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue