mirror of https://github.com/docker/docker-py.git
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 <albinker@gmail.com>
This commit is contained in:
parent
378325363e
commit
c38656dc78
|
|
@ -327,8 +327,6 @@ class TestNetworks(BaseAPIIntegrationTest):
|
||||||
net_name, net_id = self.create_network()
|
net_name, net_id = self.create_network()
|
||||||
with pytest.raises(docker.errors.APIError):
|
with pytest.raises(docker.errors.APIError):
|
||||||
self.client.create_network(net_name, check_duplicate=True)
|
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')
|
@requires_api_version('1.22')
|
||||||
def test_connect_with_links(self):
|
def test_connect_with_links(self):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue