Include docker-py link-local fix and improve integration test

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2016-07-25 15:21:27 -07:00
parent fd254caa68
commit 66b395d950
1 changed files with 11 additions and 0 deletions

View File

@ -783,6 +783,17 @@ class ProjectTest(DockerClientTestCase):
)
project.up()
service_container = project.get_service('web').containers()[0]
ipam_config = service_container.inspect().get(
'NetworkSettings', {}
).get(
'Networks', {}
).get(
'composetest_linklocaltest', {}
).get('IPAMConfig', {})
assert 'LinkLocalIPs' in ipam_config
assert ipam_config['LinkLocalIPs'] == ['169.254.8.8']
@v2_only()
def test_project_up_with_network_internal(self):
self.require_api_version('1.23')