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 | |
DavidPurcell | 45bc1a6 | 2017-01-19 17:21:27 -0500 | [diff] [blame] | 17 | Or to install from the source:: |
| 18 | |
| 19 | $ navigate to patrole directory |
| 20 | $ pip install -e . |
| 21 | |
DavidPurcell | 663aedf | 2017-01-03 10:01:14 -0500 | [diff] [blame] | 22 | Configuration Information |
| 23 | ######################### |
| 24 | |
| 25 | tempest.conf |
| 26 | ++++++++++++ |
| 27 | |
Felipe Monteiro | 652e2a2 | 2017-01-25 16:44:02 -0500 | [diff] [blame] | 28 | To run the RBAC tempest api test, you have to make the following changes to |
DavidPurcell | 663aedf | 2017-01-03 10:01:14 -0500 | [diff] [blame] | 29 | the tempest.conf file. |
| 30 | |
| 31 | #. [auth] section updates :: |
| 32 | |
| 33 | # Set tempest role to admin so all APIs are accessible |
| 34 | tempest_roles = admin |
| 35 | |
| 36 | # Allows test cases to create/destroy tenants and users. This |
| 37 | # option enables isolated test cases and better parallel |
| 38 | # execution, but also requires that OpenStack Identity API |
| 39 | # admin credentials are known. (boolean value) |
| 40 | allow_tenant_isolation = True |
| 41 | |
| 42 | # Allows test cases to create/destroy projects and users. This option |
| 43 | # requires that OpenStack Identity API admin credentials are known. If |
| 44 | # false, isolated test cases and parallel execution, can still be |
| 45 | # achieved configuring a list of test accounts (boolean value) |
| 46 | use_dynamic_credentials = False |
| 47 | |
| 48 | #. [rbac] section updates :: |
| 49 | |
| 50 | # The role that you want the RBAC tests to use for RBAC testing |
DavidPurcell | 029d8c3 | 2017-01-06 15:27:41 -0500 | [diff] [blame] | 51 | # This needs to be edited to run the test as a different role. |
Felipe Monteiro | 652e2a2 | 2017-01-25 16:44:02 -0500 | [diff] [blame] | 52 | rbac_test_role = _member_ |
DavidPurcell | 45bc1a6 | 2017-01-19 17:21:27 -0500 | [diff] [blame] | 53 | |
Felipe Monteiro | 652e2a2 | 2017-01-25 16:44:02 -0500 | [diff] [blame] | 54 | # Enables RBAC Tempest tests if set to True. Otherwise, they are |
| 55 | # skipped. |
| 56 | rbac_flag = True |