diff options
| author | Richard Theis <rtheis@us.ibm.com> | 2016-04-21 11:33:24 -0500 |
|---|---|---|
| committer | Richard Theis <rtheis@us.ibm.com> | 2016-04-21 11:33:24 -0500 |
| commit | 27024d70af4756cb6e4b210b025ed7427541f773 (patch) | |
| tree | 9917c28a6a973272866d68337165a0886bbb219f /functional | |
| parent | 0d3a06db1ce3871e4153255d21c9c9f6ac321030 (diff) | |
| download | python-openstackclient-27024d70af4756cb6e4b210b025ed7427541f773.tar.gz | |
Support quota show for current project
The "os quota show" command "<project/class>" argument is now
optional. If not specified, the user's current project is used.
This allows non-admin users to show quotas for their current
project.
Change-Id: I602d4cc09c9d29ce84271eff78137f8810cb1a47
Closes-Bug: #1572733
Diffstat (limited to 'functional')
| -rw-r--r-- | functional/tests/common/test_quota.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/functional/tests/common/test_quota.py b/functional/tests/common/test_quota.py index 62b43a34..22549efe 100644 --- a/functional/tests/common/test_quota.py +++ b/functional/tests/common/test_quota.py @@ -36,3 +36,8 @@ class QuotaTests(test.TestCase): raw_output = self.openstack('quota show ' + self.PROJECT_NAME) for expected_field in self.EXPECTED_FIELDS: self.assertIn(expected_field, raw_output) + + def test_quota_show_default_project(self): + raw_output = self.openstack('quota show') + for expected_field in self.EXPECTED_FIELDS: + self.assertIn(expected_field, raw_output) |
