mirror of
https://github.com/docker/compose.git
synced 2025-07-27 07:34:10 +02:00
Include docker-py link-local fix and improve integration test
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
fd254caa68
commit
66b395d950
@ -783,6 +783,17 @@ class ProjectTest(DockerClientTestCase):
|
|||||||
)
|
)
|
||||||
project.up()
|
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()
|
@v2_only()
|
||||||
def test_project_up_with_network_internal(self):
|
def test_project_up_with_network_internal(self):
|
||||||
self.require_api_version('1.23')
|
self.require_api_version('1.23')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user