summaryrefslogtreecommitdiff
path: root/functional
diff options
context:
space:
mode:
authorBrian Haley <brian.haley@hpe.com>2016-07-15 13:20:10 -0400
committerBrian Haley <brian.haley@hpe.com>2016-08-19 11:05:33 -0400
commitcf9ad08ab6fd5e6ed5f68208a39b0014b0af5f8a (patch)
treee3748429db13d716dc8d96f55453c4ead387c8e5 /functional
parent34f5515a329d7bdd9b945e256729cd4c97595201 (diff)
downloadpython-openstackclient-cf9ad08ab6fd5e6ed5f68208a39b0014b0af5f8a.tar.gz
Add Subnet service-types to subnets
Add '--service-type' to subnet arguments to support Subnet service-types. Change-Id: I215d83e4d4cf53e03fa35041c5e41a328641b3a9 Partially-implements: blueprint service-subnets
Diffstat (limited to 'functional')
-rw-r--r--functional/tests/network/v2/test_subnet.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/functional/tests/network/v2/test_subnet.py b/functional/tests/network/v2/test_subnet.py
index 11ae6da1..7fb48437 100644
--- a/functional/tests/network/v2/test_subnet.py
+++ b/functional/tests/network/v2/test_subnet.py
@@ -53,6 +53,13 @@ class SubnetTests(test.TestCase):
raw_output = self.openstack('subnet show ' + self.NAME + opts)
self.assertEqual("False\n" + self.NAME + "\n", raw_output)
+ def test_subnet_set_service_type(self):
+ TYPE = 'network:floatingip_agent_gateway'
+ self.openstack('subnet set --service-type ' + TYPE + ' ' + self.NAME)
+ opts = self.get_opts(['name', 'service_types'])
+ raw_output = self.openstack('subnet show ' + self.NAME + opts)
+ self.assertEqual(self.NAME + "\n" + TYPE + "\n", raw_output)
+
def test_subnet_show(self):
opts = self.get_opts(self.FIELDS)
raw_output = self.openstack('subnet show ' + self.NAME + opts)