summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJoffrey F <joffrey@docker.com>2017-05-17 15:23:36 -0700
committerJoffrey F <joffrey@docker.com>2017-05-17 15:25:10 -0700
commitff718f5dac2ba00ffbb52c0f3b1af5b687f07930 (patch)
treec06c1657c4935af6905f1ae7c22c1d5a88a7e228 /tests
parent7af7e1b73adbbe9385ee052ebd3755a1a62652f2 (diff)
downloaddocker-py-create-ingress-network.tar.gz
Add support for ingress in create_networkcreate-ingress-network
Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/api_network_test.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/integration/api_network_test.py b/tests/integration/api_network_test.py
index b3ae512..5439dd7 100644
--- a/tests/integration/api_network_test.py
+++ b/tests/integration/api_network_test.py
@@ -452,6 +452,14 @@ class TestNetworks(BaseAPIIntegrationTest):
net = self.client.inspect_network(net_id)
assert net['Attachable'] is True
+ @requires_api_version('1.29')
+ def test_create_network_ingress(self):
+ assert self.client.init_swarm('eth0')
+ self.client.remove_network('ingress')
+ _, net_id = self.create_network(driver='overlay', ingress=True)
+ net = self.client.inspect_network(net_id)
+ assert net['Ingress'] is True
+
@requires_api_version('1.25')
def test_prune_networks(self):
net_name, _ = self.create_network()