Sergey Vilgelm | 062fb15 | 2018-09-06 20:51:57 -0500 | [diff] [blame] | 1 | --- |
| 2 | features: |
| 3 | - | |
| 4 | In order to implement the tests for plugins which do not maintain the |
| 5 | ``policy.json`` with full list of the policy rules and provide policy file |
| 6 | with only their own policy rules, the Patrole should be able to load and |
| 7 | merge multiple policy files for any of the services. |
| 8 | |
| 9 | - Discovery all policy files for each of the services. |
| 10 | The updated ``discover_policy_files`` function picks all candidate paths |
| 11 | found out of the potential paths in the ``[patrole].custom_policy_files`` |
| 12 | config option. Using ``glob.glob()`` function makes it possible to use |
| 13 | the patterns like '\*.json' to discover the policy files. |
| 14 | |
| 15 | - Loading and merging a data from multiple policy files. |
| 16 | Patrole loads a data from each of the discovered policy files for a |
| 17 | service and merge the data from all files. |