062fb157b8
Most of the neutron plugins provide an updated version of policy.json file with full list of rules, but at the same time there are a lot of other plugins which provide their own policy files and store them in the policy.d/ folder: neutron-fwaas, networking-bgpvpn, vmware-nsx, ect... To implement the tests for such plugins the Patrole should be able to load and merge multiple policy files for any of the services. Modify the discover_policy_files function to discover all policy files for each of the services. Using glob.glob() function makes it possible to use patterns like '*.json' to discover the policy files. Modify the _get_policy_data function to load a data from all discovered policy files for a service. Update the unit test according to the changes. Change-Id: Ib24f3d6d7a5ffdeaecce579af9795fd897dce872 |
||
---|---|---|
.. | ||
hacking | ||
tests | ||
__init__.py | ||
config.py | ||
plugin.py | ||
policy_authority.py | ||
rbac_authority.py | ||
rbac_exceptions.py | ||
rbac_rule_validation.py | ||
rbac_utils.py | ||
requirements_authority.py | ||
version.py |