DavidPurcell | 663aedf | 2017-01-03 10:01:14 -0500 | [diff] [blame] | 1 | ============ |
| 2 | Installation |
| 3 | ============ |
| 4 | |
| 5 | Installation Information |
| 6 | ######################## |
| 7 | |
| 8 | At the command line:: |
| 9 | |
| 10 | $ pip install patrole |
| 11 | |
| 12 | Or, if you have virtualenvwrapper installed:: |
| 13 | |
| 14 | $ mkvirtualenv patrole |
| 15 | $ pip install patrole |
| 16 | |
| 17 | Configuration Information |
| 18 | ######################### |
| 19 | |
| 20 | tempest.conf |
| 21 | ++++++++++++ |
| 22 | |
| 23 | To run the RBAC tempest api test you have to make the following changes to |
| 24 | the tempest.conf file. |
| 25 | |
| 26 | #. [auth] section updates :: |
| 27 | |
| 28 | # Set tempest role to admin so all APIs are accessible |
| 29 | tempest_roles = admin |
| 30 | |
| 31 | # Allows test cases to create/destroy tenants and users. This |
| 32 | # option enables isolated test cases and better parallel |
| 33 | # execution, but also requires that OpenStack Identity API |
| 34 | # admin credentials are known. (boolean value) |
| 35 | allow_tenant_isolation = True |
| 36 | |
| 37 | # Allows test cases to create/destroy projects and users. This option |
| 38 | # requires that OpenStack Identity API admin credentials are known. If |
| 39 | # false, isolated test cases and parallel execution, can still be |
| 40 | # achieved configuring a list of test accounts (boolean value) |
| 41 | use_dynamic_credentials = False |
| 42 | |
| 43 | #. [rbac] section updates :: |
| 44 | |
| 45 | # The role that you want the RBAC tests to use for RBAC testing |
DavidPurcell | 029d8c3 | 2017-01-06 15:27:41 -0500 | [diff] [blame^] | 46 | # This needs to be edited to run the test as a different role. |
DavidPurcell | 663aedf | 2017-01-03 10:01:14 -0500 | [diff] [blame] | 47 | rbac_role=_member_ |
| 48 | # Tell standard RBAC test cases to run other wise it they are skipped. |
| 49 | rbac_flag=true |