diff options
author | Joffrey F <joffrey@docker.com> | 2017-05-17 15:23:36 -0700 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2017-05-17 15:25:10 -0700 |
commit | ff718f5dac2ba00ffbb52c0f3b1af5b687f07930 (patch) | |
tree | c06c1657c4935af6905f1ae7c22c1d5a88a7e228 /tests | |
parent | 7af7e1b73adbbe9385ee052ebd3755a1a62652f2 (diff) | |
download | docker-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.py | 8 |
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() |