summaryrefslogtreecommitdiff
path: root/functional/common
diff options
context:
space:
mode:
authorRichard Theis <rtheis@us.ibm.com>2016-02-12 12:48:33 -0600
committerRichard Theis <rtheis@us.ibm.com>2016-02-12 12:52:40 -0600
commitea0b8f91627f5ef4a89f23e391a5733032bccc0e (patch)
treefba925f3d07f17834a388af7e19c024c729ff156 /functional/common
parent91177828d8488bae761826c61aed322ce13886ec (diff)
downloadpython-openstackclient-ea0b8f91627f5ef4a89f23e391a5733032bccc0e.tar.gz
Add quota functional tests
Add functional tests for "os quota" commands. Change-Id: I0f5939bf4ce553174c9b7ce55bdb3dce0506c409 Related-Bug: #1528249 Partially-Implements: blueprint neutron-client
Diffstat (limited to 'functional/common')
-rw-r--r--functional/common/test.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/functional/common/test.py b/functional/common/test.py
index 2fc355f8..1e767af8 100644
--- a/functional/common/test.py
+++ b/functional/common/test.py
@@ -52,6 +52,11 @@ class TestCase(testtools.TestCase):
return execute('openstack ' + cmd, fail_ok=fail_ok)
@classmethod
+ def get_openstack_configuration_value(cls, configuration):
+ opts = cls.get_show_opts([configuration])
+ return cls.openstack('configuration show ' + opts)
+
+ @classmethod
def get_show_opts(cls, fields=[]):
return ' -f value ' + ' '.join(['-c ' + it for it in fields])