neutron/neutron/tests
Felipe Monteiro b5f7bd333e Add missing policy actions to policy.json file
This patchset adds missing policy actions to the policy.json
file for several reasons:

1) It signals to operators all the policy actions that are
   enforced in the system. With the governance spec [0]
   urging projects toward policy in code documentation,
   it makes sense to document all policy actions in the
   policy.json as Neutron doesn't have policy in code.

2) It is consistent with Neutron's policy enforcement
   documentation [1]:

   "For each attribute which has been explicitly specified in the
    request create a rule matching policy names in the form
    <operation>_<resource>:<attribute> rule"

    So it makes sense to capture each policy that is enforced,
    including all those with these special attributes.

3) Why include "update_router:external_gateway_info" but not
   "create_router:external_gateway_info"? This is inconsistent.

4) It makes it difficult to validate Neutron's policy via Patrole
   if the policies aren't contained in the policy.json -- how else
   is it possible to determine which policies to expect if they
   aren't documented anywhere?

[0] https://governance.openstack.org/tc/goals/queens/policy-in-code.html
[1] https://docs.openstack.org/neutron/pike/contributor/internals/policy.html#authorization-workflow

Change-Id: I40f84134f0b56cfd574dfd69e5ebbf6a3fc2b3df
(cherry picked from commit 41fe927c80)
2019-05-09 12:25:40 +02:00
..
common Give some HA router case specific resources 2019-04-25 08:30:34 +00:00
contrib Change ovs version we use in fullstack tests 2019-04-09 16:25:29 +00:00
etc Add missing policy actions to policy.json file 2019-05-09 12:25:40 +02:00
fullstack Clear residual qos rules after l2-agent restarts. 2019-01-24 06:43:01 +00:00
functional Give some HA router case specific resources 2019-04-25 08:30:34 +00:00
tempest Remove the bundled intree neutron tempest plugin 2017-11-22 12:54:33 -08:00
unit Add missing policy actions to policy.json file 2019-05-09 12:25:40 +02:00
var
__init__.py Avoid eventlet monkey patching for the tempest plugin 2016-04-29 22:47:24 -05:00
base.py Handle DBConnectionError in skip_if_timeout decorator 2019-04-11 07:22:02 +00:00
fake_notifier.py FakeNotifier class 'topic' argument change to 'topics'. 2017-12-04 20:10:03 +01:00
post_mortem_debug.py Cleanup recent generalization in post mortem debugger 2014-12-04 15:28:11 +01:00
tools.py Router to OVO 2017-11-24 04:11:33 +00:00