Add support for "per_volume_gigabytes" and "backup_gigabytes" quota
Update a testcase "test_update_all_quota_resources_for_tenant" to verify
"per_volume_gigabytes" and "backup_gigabytes" quota updating.
Note: There is a bug in api v2 documentation[1], since "backup_gigabytes"
and "per_volume_gigabytes" parameters aren't mentioned in api v2
document, although they are supported.
[1] https://bugs.launchpad.net/openstack-api-site/+bug/1727631
Change-Id: I9b6aa355f7a5b7fb6836e377c0f374707402c977
diff --git a/tempest/api/volume/admin/test_volume_quotas.py b/tempest/api/volume/admin/test_volume_quotas.py
index ae4b579..f859b89 100644
--- a/tempest/api/volume/admin/test_volume_quotas.py
+++ b/tempest/api/volume/admin/test_volume_quotas.py
@@ -18,7 +18,8 @@
from tempest.lib.common.utils import data_utils
from tempest.lib import decorators
-QUOTA_KEYS = ['gigabytes', 'snapshots', 'volumes', 'backups']
+QUOTA_KEYS = ['gigabytes', 'snapshots', 'volumes', 'backups',
+ 'backup_gigabytes', 'per_volume_gigabytes']
QUOTA_USAGE_KEYS = ['reserved', 'limit', 'in_use']
@@ -66,7 +67,9 @@
new_quota_set = {'gigabytes': 1009,
'volumes': 11,
'snapshots': 11,
- 'backups': 11}
+ 'backups': 11,
+ 'backup_gigabytes': 1009,
+ 'per_volume_gigabytes': 1009}
# Update limits for all quota resources
quota_set = self.admin_quotas_client.update_quota_set(