Add Multi-user support for Functional Tests

This commit adds the infrastructure for multi user testing.  It also adds
a small set of test cases that exercises RBAC policy for secret and
container reads.

Six users with four roles and two projects are added.
   In Project A: admin_a, creator_a, observer_a, auditor_a
   In Project B: admin_b, observer_b

Get Secrets and Get Containers are tested for each user.

Implements: blueprint add-run-as-for-functional-tests
Relates-to: blueprint multi-user-functional-tests

Change-Id: I65c820440c014301cfce90d360440d3e12e7ffba
This commit is contained in:
Dave McCowan
2015-04-21 17:56:17 -04:00
parent f39eb03916
commit 28135c1099
11 changed files with 500 additions and 69 deletions

View File

@@ -10,6 +10,23 @@ project_name=admin
password=secretadmin
domain_name=Default
[rbac_users]
# Replace these values that represent additional users for RBAC testing
project_a=project_a
project_b=project_b
admin_a=project_a_admin
admin_a_password=barbican
creator_a=project_a_creator
creator_a_password=barbican
observer_a=project_a_observer
observer_a_password=barbican
auditor_a=project_a_auditor
auditor_a_password=barbican
admin_b=project_b_admin
admin_b_password=barbican
observer_b=project_b_observer
observer_b_password=barbican
[keymanager]
# use this to run the functional tests against a