patrole/patrole_tempest_plugin
Sergey Vilgelm 062fb157b8
Add support for multiple policy files
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
2018-09-11 12:22:55 -05:00
..
hacking Bump hacking to 1.1.0 2018-07-10 18:40:19 +00:00
tests Add support for multiple policy files 2018-09-11 12:22:55 -05:00
__init__.py Initial Cookiecutter commit 2017-01-04 15:11:34 -05:00
config.py Add support for multiple policy files 2018-09-11 12:22:55 -05:00
plugin.py feature flag: Policy feature enabled config group 2018-05-19 16:24:33 +01:00
policy_authority.py Add support for multiple policy files 2018-09-11 12:22:55 -05:00
rbac_authority.py Move RbacAuthority class into separate module 2018-05-31 19:07:15 -04:00
rbac_exceptions.py Limit exception handling to calls within override_role 2018-08-31 02:35:46 +00:00
rbac_rule_validation.py Limit exception handling to calls within override_role 2018-08-31 02:35:46 +00:00
rbac_utils.py Limit exception handling to calls within override_role 2018-08-31 02:35:46 +00:00
requirements_authority.py Merge "Add docstrings for requirements_authority module" 2018-06-09 05:10:36 +00:00
version.py Add a page for release 0.1.0 to release notes 2017-06-02 18:44:56 +00:00