summaryrefslogtreecommitdiff
path: root/openstackclient/tests/functional/base.py
diff options
context:
space:
mode:
authorRichard Theis <rtheis@us.ibm.com>2016-03-08 15:18:16 -0600
committerRichard Theis <rtheis@us.ibm.com>2016-09-09 15:19:55 -0500
commit4f23a77de04bfdfafd4bf8f16b0365df7663e9e5 (patch)
tree9bddb1c73cb897ce7c967cd16013779ab54b5632 /openstackclient/tests/functional/base.py
parentbee04914b8e582fb902a8d0cbd2cf6511bfe4b8b (diff)
downloadpython-openstackclient-4f23a77de04bfdfafd4bf8f16b0365df7663e9e5.tar.gz
Add network segment create, delete and set support
Add network segment create, delete and set in support of routed networks. This patch set includes documentation, unit tests and functional tests for the following new commands: - "os network segment create" - "os network segment delete" - "os network segment set" This patch set also includes support for the name and description properties. These new commands are currently marked as beta commands. Change-Id: I86bc223c4adc5b5fe1b1ee5c9253e43ba52fb5ed Depends-On: Ib194125162057fccb4e951587c2fa4ec2e2f098c Partially-Implements: blueprint routed-networks
Diffstat (limited to 'openstackclient/tests/functional/base.py')
-rw-r--r--openstackclient/tests/functional/base.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/openstackclient/tests/functional/base.py b/openstackclient/tests/functional/base.py
index f7f0361e..298b2454 100644
--- a/openstackclient/tests/functional/base.py
+++ b/openstackclient/tests/functional/base.py
@@ -58,6 +58,11 @@ class TestCase(testtools.TestCase):
return cls.openstack('configuration show ' + opts)
@classmethod
+ def get_openstack_extention_names(cls):
+ opts = cls.get_opts(['Name'])
+ return cls.openstack('extension list ' + opts)
+
+ @classmethod
def get_opts(cls, fields, format='value'):
return ' -f {0} {1}'.format(format,
' '.join(['-c ' + it for it in fields]))