| commit | 3f52a4aba882678641b946072fcf77f898dbc975 | [log] [tgz] |
|---|---|---|
| author | Felipe Monteiro <felipe.monteiro@att.com> | Tue Feb 07 12:05:54 2017 -0500 |
| committer | Felipe Monteiro <felipe.monteiro@att.com> | Mon Mar 13 11:43:44 2017 -0400 |
| tree | 29ae8cb16055de90d17a80b8dfe20e7ace0a5cd4 | |
| parent | f25c5b88f3351fbfff900b2f70494c24301b4e39 [diff] |
Add new detail kwarg to show_quota_set to QuotasClient.
Currently, quotas_client.QuotasClient doesn't support the
'os-quota-sets/{tenant_id}/detail' endpoint [0] but is supported
by Nova [1].
Nova uses the policy 'os_compute_api:os-quota-sets:detail'
for the endpoint ending with /detail and
'os_compute_api:os-quota-sets:show' without the /detail uri [2].
This is needed by Patrole for complete test coverage for Nova.
This patch adds the kwarg to show_quota_set which calls the '/detail'
endpoint, if True. Also updated quotas schema with
get_quota_set_details, because each property in the response body
is of type object, not integer [1].
[0] https://github.com/openstack/tempest/blob/master/tempest/lib/services/compute/quotas_client.py
[1] https://developer.openstack.org/api-ref/compute/?expanded=show-the-detail-of-quota-detail#show-the-detail-of-quota
[2] https://github.com/openstack/nova/blob/master/nova/policies/quota_sets.py
Change-Id: I9a65411c6bf65bf20842719bffe46c7fa7db82eb
Closes-Bug: #1662593