Skip to content

Commit

Permalink
integration: check_duplicate is now the default behavior
Browse files Browse the repository at this point in the history
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 <albinker@gmail.com>
  • Loading branch information
akerouanton committed Aug 19, 2023
1 parent 0f0b20a commit 6eddc0a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/integration/api_network_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,6 @@ def test_create_check_duplicate(self):
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):
Expand Down

0 comments on commit 6eddc0a

Please sign in to comment.