From c38656dc7894363f32317affecc3e4279e1163f8 Mon Sep 17 00:00:00 2001 From: Albin Kerouanton <557933+akerouanton@users.noreply.github.com> Date: Mon, 21 Aug 2023 15:31:57 +0200 Subject: [PATCH] integration: Remove test_create_check_duplicate (#3170) integration: check_duplicate is now the default behavior moby/moby#46251 marks CheckDuplicate as deprecated. Any NetworkCreate request with a conflicting network name will now return an error. Signed-off-by: Albin Kerouanton --- tests/integration/api_network_test.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/integration/api_network_test.py b/tests/integration/api_network_test.py index 74dad600..6689044b 100644 --- a/tests/integration/api_network_test.py +++ b/tests/integration/api_network_test.py @@ -327,8 +327,6 @@ class TestNetworks(BaseAPIIntegrationTest): net_name, net_id = self.create_network() with pytest.raises(docker.errors.APIError): self.client.create_network(net_name, check_duplicate=True) - net_id = self.client.create_network(net_name, check_duplicate=False) - self.tmp_networks.append(net_id['Id']) @requires_api_version('1.22') def test_connect_with_links(self):