diff options
author | Cedric Ollivier <cedric.ollivier@orange.com> | 2018-08-28 14:59:04 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-08-28 14:59:04 +0000 |
commit | f10ff0861887807da7e6eee663efc0031e28827c (patch) | |
tree | 81a15fc144c669ede33623cd5630a8d3ba18cfaa | |
parent | 8ca772c7ae1d477d072cef3ec43144a2a6812334 (diff) | |
parent | ea596bbf094c8e45961b1b1379e58631942e4864 (diff) |
Merge "Allow adding a specific role to users created by tempest"
-rw-r--r-- | functest/opnfv_tests/openstack/tempest/conf_utils.py | 2 |
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', |