]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Reset policies after RESOURCE_ATTRIBUTE_MAP is populated
authorBrent Eagles <beagles@redhat.com>
Fri, 10 Oct 2014 15:57:51 +0000 (13:27 -0230)
committerBrent Eagles <beagles@redhat.com>
Wed, 7 Jan 2015 15:34:13 +0000 (15:34 +0000)
commiteeff5d06b2099ed9813091926dd8cef58680ad8f
treef03f39610288130ee125b66c3aafbb613f5545fb
parent481d366298c83733f2bb6e897015bc2a382ff73b
Reset policies after RESOURCE_ATTRIBUTE_MAP is populated

The REST API relies on neutron-specific policy checking logic that is
only available after the extensions are loaded and the
RESOURCE_ATTRIBUTE_MAP is populated. This patch resets the policies
immediately after these steps are done. This ensures that in the event
the policies are prematurely loaded for any reason, the on-demand
loading of the policies will reload the policies and properly configure
the neutron specific checks on the next policy check.

Change-Id: Ic2ab3f0179b0c192e63af0bc4268d92aa26bdabe
Closes-Bug: #1398566
Related-Bug: #1254555
neutron/api/extensions.py
neutron/api/v2/router.py
neutron/tests/functional/api/__init__.py [new file with mode: 0644]
neutron/tests/functional/api/test_policies.py [new file with mode: 0644]