nova/nova/tests/unit/api
Prashanth kumar reddy 4a09c2210b Separate CRUD policy for server_groups
The same policy rule (os_compute_api:os-server-groups) is being used
for all actions (show, index, delete, create) for server_groups REST
APIs. It is thus impossible to provide different RBAC for specific
actions based on roles. To address this changes are made to have
separate policy rules for each of action.

It has been argued that index and show may not need separate policy
rules, but most other places in nova (and OpenStack in general) do
have separate policy rules for each action. This affords the ultimate
flexibility to deployers, who can obviously use the same rule if
that is what they want. One example where show and index may be
different is that if show is restricted based on some criteria, such
that a user is able to see some resources within the tenant but not
others, then list would need to be disallowed to prevent the user
from using list to see resources they cannot show.

Change-Id: Ica9e07f6e80257902b4a0cc44b65fd6bad008bba
Closes-Bug: #1636157
2016-11-21 11:43:13 -05:00
..
openstack Separate CRUD policy for server_groups 2016-11-21 11:43:13 -05:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_auth.py Update nova api.auth tests to work with newer oslo.context 2016-11-08 15:59:59 -08:00
test_compute_req_id.py Fixes python 3 unit tests 2016-09-23 20:10:24 +00:00
test_wsgi.py Capture stdout in for test_wsgi:test_debug 2016-09-26 06:45:08 -04:00