]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix default RBAC policy quota
authorKevin Benton <blak111@gmail.com>
Thu, 3 Dec 2015 01:55:01 +0000 (17:55 -0800)
committerKevin Benton <blak111@gmail.com>
Thu, 3 Dec 2015 22:03:44 +0000 (14:03 -0800)
commit3f7fa1d6468aea1f043d29291cb5427369b284d3
tree0941c86c770d74afbed9ff47212617085953ec51
parenta8a0c619de69dd0d84a692c85fe6d23b765550e7
Fix default RBAC policy quota

The previous config value for the default RBAC policy
was not in neutron.conf and value that was registered
as a config option 'rbac_entry' didn't match the resource
name 'rbac_policy' so the default did not take effect.

This patch corrects it by registering the 'rbac_policy'
option instead of 'rbac_entry' and documents it in neutron.conf.
It also adds an API test that exercises the quota limit and
ensures that it's not set to -1.

Change-Id: I8c8d4bcfda808e376af94048fe5a98c68a2a975f
Closes-Bug: #1522224
neutron/extensions/rbac.py
neutron/tests/api/admin/test_shared_network_extension.py