From a94f0ac4fc5b1b927dc1b38cd866d05955cda95c Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 22 May 2024 18:19:03 +0200 Subject: [PATCH] no DNSNames for you! Signed-off-by: Sebastiaan van Stijn --- tests/integration/models_containers_test.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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']