compose/tests/integration
Daniel Nephin 7fc577c31d Remove name from config schema.
Refactors config validation of a service to use a ServiceConfig data object.
Instead of passing around a bunch of related scalars, we can use the
ServiceConfig object as a parameter to most of the service validation functions.

This allows for a fix to the config schema, where the name is a field in the
schema, but not actually in the configuration. My passing the name around as
part of the ServiceConfig object, we don't need to add it to the config options.
Fixes #2299

validate_against_service_schema() is moved from a conditional branch in
ServiceExtendsResolver() to happen as one of the last steps after all
configuration is merged. This schema only contains constraints which only need
to be true at the very end of merging.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-12 13:54:41 -05:00
..
__init__.py Split tests into unit and integration 2014-04-25 22:58:21 +01:00
legacy_test.py Update unit tests for stream_output to match the behaviour of a docker-py response. 2015-08-25 10:48:48 -04:00
project_test.py Only create the default network if at least one service needs it. 2015-11-12 13:54:41 -05:00
resilience_test.py Remove service.start_container() 2015-11-12 13:54:39 -05:00
service_test.py Rename ServiceLoader to ServiceExtendsResolver 2015-11-12 13:54:41 -05:00
state_test.py Recreate dependents when a dependency is created (not just when it's recreated). 2015-11-12 13:54:40 -05:00
testcases.py Remove name from config schema. 2015-11-12 13:54:41 -05:00