]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Show qos_specs_id based on policy
authorNate Potter <nathaniel.potter@intel.com>
Wed, 4 Nov 2015 15:45:11 +0000 (15:45 +0000)
committerNate Potter <nathaniel.potter@intel.com>
Wed, 9 Mar 2016 20:01:03 +0000 (20:01 +0000)
commit9150dc58df032cf6ccbdf4b2dcdfd178b0de305c
tree58aadac01cd75b073d7905c57e81ea9ee952742b
parent16aac2a659d4206c14f96dd335197d7cd4121ac3
Show qos_specs_id based on policy

Right now qos_specs_id is only shown to an admin user
when showing a volume type. This patch changes that to
be based on policy to allow for more flexibility. It
also adds unit tests for showing a volume type
with policy permissions for qos_specs_id as well as
extra_specs.

APIImpact

Change-Id: I4e6e99b8992b6941ba247bee90493cc2adba7f0b
Closes-bug: #1512876
cinder/api/common.py
cinder/api/v2/types.py
cinder/api/v2/views/types.py
cinder/tests/unit/api/v2/test_types.py
cinder/tests/unit/policy.json
etc/cinder/policy.json