diff options
Diffstat (limited to 'functional/tests/identity/v3/test_identity.py')
| -rw-r--r-- | functional/tests/identity/v3/test_identity.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/functional/tests/identity/v3/test_identity.py b/functional/tests/identity/v3/test_identity.py index 6aeddccc..3164e8fb 100644 --- a/functional/tests/identity/v3/test_identity.py +++ b/functional/tests/identity/v3/test_identity.py @@ -10,6 +10,8 @@ # License for the specific language governing permissions and limitations # under the License. +import os + from tempest_lib.common.utils import data_utils from functional.common import test @@ -47,6 +49,13 @@ class IdentityTests(test.TestCase): if hasattr(super(IdentityTests, cls), 'setUpClass'): super(IdentityTests, cls).setUpClass() + # prepare v3 env + auth_url = os.environ.get('OS_AUTH_URL') + auth_url = auth_url.replace('v2.0', 'v3') + os.environ['OS_AUTH_URL'] = auth_url + os.environ['OS_IDENTITY_API_VERSION'] = '3' + os.environ['OS_AUTH_TYPE'] = 'v3password' + # create dummy domain cls.domain_name = data_utils.rand_name('TestDomain') cls.domain_description = data_utils.rand_name('description') |
