Sean Pryor | 7f8993f | 2017-08-14 12:53:17 -0400 | [diff] [blame] | 1 | --- |
| 2 | features: |
| 3 | - | |
| 4 | Added in a new logging feature which logs the result of each Patrole test |
| 5 | |
| 6 | The format of the new log output is: |
| 7 | |
| 8 | "[Service]: %s, [Test]: %s, [Rule]: %s, [Expected]: %s, [Actual]: %s" |
| 9 | |
| 10 | where each "%s" is a string that contains: |
| 11 | |
| 12 | * [Service] - The openstack service being tested (Nova, Neutron, etc) |
| 13 | * [Test] - The name of the test function being invoked (eg: test_list_aggregate_rbac) |
| 14 | * [Rule] - The name of the rule the Patrole test is testing (eg: os_compute_api:os-aggregates) |
| 15 | * [Expected] - The expected outcome (one of Allowed/Denied) |
| 16 | * [Actual] - The actual outcome from the Patrole test (one of Allowed/Denied/Error) |
| 17 | |
| 18 | This logging feature has two config variables: |
| 19 | |
| 20 | These variables are part of a new config group ``patrole_log`` |
| 21 | |
| 22 | * enable_reporting: |
| 23 | This enables or disables the enhanced rbac reporting |
| 24 | * report_log_name: |
| 25 | This variable specifies the name of the log file to write |
| 26 | * report_log_path: |
| 27 | This variable specifies the path (relative or absolute) |
| 28 | of the log file to write |