Skip to content

Commit 47b54dc

Browse files
Fix test_connect_with_mac_address for Docker v29.3
With (moby/moby#52040), Docker v29.3.0 now correctly applies the MacAddress field in EndpointSettings when connecting a container to a network. This test connects a stopped container and immediately inspects it. On Docker v29.3.0, the endpoint MAC is not present in the inspect data in that state, so the assertion fails. Start the container before inspecting so the test passes on both old and new Docker versions. Fixes: #3389 Signed-off-by: Ricardo Branco <rbranco@suse.de>
1 parent df3f8e2 commit 47b54dc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/integration/api_network_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,8 @@ def test_connect_with_mac_address(self):
420420
container, net_name, mac_address='02:42:ac:11:00:02'
421421
)
422422

423+
self.client.start(container)
424+
423425
container_data = self.client.inspect_container(container)
424426

425427
net_data = container_data['NetworkSettings']['Networks'][net_name]

0 commit comments

Comments
 (0)