compose/tests/unit
Daniel Nephin 1f7faadc77 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-11 11:00:11 -05:00
..
cli Fix #1549 - flush after each line of logs. 2015-11-05 15:33:42 -05:00
config Remove name from config schema. 2015-11-11 11:00:11 -05:00
__init__.py Split tests into unit and integration 2014-04-25 22:58:21 +01:00
cli_test.py Fix unicode in environment variables for python2. 2015-10-22 12:12:43 -04:00
container_test.py Use custom container name in logs. Fixes #1851 2015-09-07 14:03:00 +01:00
interpolation_test.py Run pre-commit on all files 2015-08-24 17:04:50 -04:00
multiplexer_test.py Make sure an exception in any iterator gets raised in the main thread 2015-07-29 19:42:33 +01:00
progress_stream_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-10 12:43:55 -05:00
service_test.py Update doc wording for ulimits. 2015-11-10 15:03:20 -05:00
sort_service_test.py Run pre-commit on all files 2015-08-24 17:04:50 -04:00
split_buffer_test.py Fix split buffer with inconsistently delimited json objects. 2015-10-06 10:43:07 -04:00
utils_test.py Handle non-utf8 unicode without raising an error. 2015-11-05 12:56:36 -05:00