From ea596bbf094c8e45961b1b1379e58631942e4864 Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Tue, 28 Aug 2018 14:52:03 +0200 Subject: Allow adding a specific role to users created by tempest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It may allow bypassing RBAC policies if required. Change-Id: I3b7ad44d7b80f8ea757846afdcd787b686c52856 Signed-off-by: Cédric Ollivier --- functest/opnfv_tests/openstack/tempest/conf_utils.py | 2 ++ 1 file changed, 2 insertions(+) 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', -- cgit 1.2.3-korg