summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-08-28 14:52:03 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2018-08-28 15:17:02 +0200
commitea596bbf094c8e45961b1b1379e58631942e4864 (patch)
tree16d1b479346c71aaadde5e3e3bb05b865df52ec1
parent27c51046bf4e33a13e22c074953640d2c746cf4d (diff)
Allow adding a specific role to users created by tempest
It may allow bypassing RBAC policies if required. Change-Id: I3b7ad44d7b80f8ea757846afdcd787b686c52856 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r--functest/opnfv_tests/openstack/tempest/conf_utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/functest/opnfv_tests/openstack/tempest/conf_utils.py b/functest/opnfv_tests/openstack/tempest/conf_utils.py
index 338fa51ca..bf1a193b6 100644
--- a/functest/opnfv_tests/openstack/tempest/conf_utils.py
+++ b/functest/opnfv_tests/openstack/tempest/conf_utils.py
@@ -216,6 +216,8 @@ def configure_tempest_update_params(
rconfig.set('identity-feature-enabled', 'api_v2', False)
else:
auth_version = 'v2'
+ if env.get("NEW_USER_ROLE").lower() != "member":
+ rconfig.set('auth', 'tempest_roles', env.get("NEW_USER_ROLE"))
rconfig.set('identity', 'auth_version', auth_version)
rconfig.set(
'validation', 'ssh_timeout',