diff --git a/tests/integration/models_containers_test.py b/tests/integration/models_containers_test.py index 39b6a5bc1..3086e369d 100644 --- a/tests/integration/models_containers_test.py +++ b/tests/integration/models_containers_test.py @@ -131,12 +131,9 @@ def test_run_with_networking_config(self): assert 'NetworkSettings' in attrs assert 'Networks' in attrs['NetworkSettings'] assert list(attrs['NetworkSettings']['Networks'].keys()) == [net_name] - # Aliases no longer include the container's short-id in API v1.45, - # and aliases are now included in DNSNames. + # Aliases no longer include the container's short-id in API v1.45. assert attrs['NetworkSettings']['Networks'][net_name]['Aliases'] \ == [test_alias] - assert attrs['NetworkSettings']['Networks'][net_name]['DNSNames'] \ - == [test_alias, attrs['Id'][:12]] assert attrs['NetworkSettings']['Networks'][net_name]['DriverOpts'] \ == test_driver_opt @@ -195,8 +192,7 @@ def test_run_with_networking_config_only_undeclared_network(self): assert 'NetworkSettings' in attrs assert 'Networks' in attrs['NetworkSettings'] assert list(attrs['NetworkSettings']['Networks'].keys()) == [net_name] - # Aliases no longer include the container's short-id in API v1.45, - # and aliases are now included in DNSNames. + # Aliases no longer include the container's short-id in API v1.45. assert (attrs['NetworkSettings']['Networks'][net_name]['Aliases'] is None) assert (attrs['NetworkSettings']['Networks'][net_name]['DriverOpts']