compose/tests/integration
Mazz Mosley d31d24d19f Work around some coupling of links, net & volume_from
This is minimal disruptive change I could make to ensure
the service integration tests worked, now we have some validation
happening.

There is some coupling/entanglement/assumption going on here.

Project when creating a service, using it's class method from_dicts
performs some transformations on links, net & volume_from, which
get passed on to Service when creating. Service itself, then performs
some transformation on those values. This worked fine in the tests before
because those options were merely passed on via make_service_dict.

This is no longer true with our validation in place. You can't pass to
ServiceLoader [(obj, 'string')] for links, the validation expects it to be
a list of strings. Which it would be when passed into Project.from_dicts
method.

I think the tests need some re-factoring but for now, manually deleting
keys out of the kwargs and then putting them back in for Service Creation
allows the tests to continue.

I am not super happy about this approach. Hopefully we can come back and
improve it.

Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-02 15:43:52 +01:00
..
__init__.py Split tests into unit and integration 2014-04-25 22:58:21 +01:00
cli_test.py Merge pull request #1930 from dnephin/name_one_off_containers 2015-08-26 19:03:00 +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 Run pre-commit on all files 2015-08-24 17:04:50 -04:00
resilience_test.py Cleanup requirements.txt so we don't have to maintain separate copies for py2 and py3. 2015-08-25 10:46:08 -04:00
service_test.py Prevent flaky test by changing container names. 2015-08-31 14:57:06 -04:00
state_test.py Prevent flaky test by changing container names. 2015-08-31 14:57:06 -04:00
testcases.py Work around some coupling of links, net & volume_from 2015-09-02 15:43:52 +01:00