compose/tests
Mazz Mosley 67995ab9e3 Pre-process validation steps
In order to validate a service name that has been specified as an
integer we need to run that as a pre-process validation step
*before* we pass the config to be validated against the schema.

It is not possible to validate it *in* the schema, it causes a
type error. Even though a number is a valid service name, it
must be a cast as a string within the yaml to avoid type error.

Taken this opportunity to move the code design in a direction
towards:

1. pre-process
2. validate
3. construct

Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-08-13 16:32:20 +01:00
..
fixtures Merge pull request #1827 from mnowster/port-ranges 2015-08-12 11:17:22 +01:00
integration Merge pull request #1827 from mnowster/port-ranges 2015-08-12 11:17:22 +01:00
unit Pre-process validation steps 2015-08-13 16:32:20 +01:00
__init__.py [pep8] flake8 run for everything, fix items from this change 2015-03-25 23:15:34 -07:00