From ea0b8f91627f5ef4a89f23e391a5733032bccc0e Mon Sep 17 00:00:00 2001 From: Richard Theis Date: Fri, 12 Feb 2016 12:48:33 -0600 Subject: Add quota functional tests Add functional tests for "os quota" commands. Change-Id: I0f5939bf4ce553174c9b7ce55bdb3dce0506c409 Related-Bug: #1528249 Partially-Implements: blueprint neutron-client --- functional/common/test.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'functional/common') 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 @@ -51,6 +51,11 @@ class TestCase(testtools.TestCase): """Executes openstackclient command for the given action.""" 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]) -- cgit v1.2.1