From 2b5bd9e685a57e8cd9a794fd04312fb44a99ad87 Mon Sep 17 00:00:00 2001 From: Steve Heyman Date: Thu, 14 May 2015 12:26:19 -0500 Subject: [PATCH] Re-merge CLI test update for auth URL and version A merge/move lost these changes. Restoring them. Change-Id: I2948ad881109a444bfba7772d303187cdb3a1a89 --- functionaltests/cli/v1/behaviors/base_behaviors.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/functionaltests/cli/v1/behaviors/base_behaviors.py b/functionaltests/cli/v1/behaviors/base_behaviors.py index bc19d039..3514e6c1 100644 --- a/functionaltests/cli/v1/behaviors/base_behaviors.py +++ b/functionaltests/cli/v1/behaviors/base_behaviors.py @@ -46,20 +46,22 @@ class BaseBehaviors(object): :return: the argument list is updated with the authentication and endpoint args """ + if 'v3' in CONF.identity.auth_version.lower(): arg_list.extend(['--os-auth-url', CONF.identity.uri_v3]) - arg_list.extend( - ['--os-project-name', CONF.keymanager.project_name]) + arg_list.extend(['--os-project-name', CONF.keymanager.project_name]) # NOTE(jaosorior): Should we add the user_domain_name to the - # config? + # config? arg_list.extend( ['--os-user-domain-name', CONF.keymanager.project_domain_name]) arg_list.extend( ['--os-project-domain-name', CONF.keymanager.project_domain_name]) + arg_list.extend(['--os-identity-api-version', '3.0']) else: - arg_list.extend(['--os-auth-url', CONF.identity.auth_uri]) + arg_list.extend(['--os-auth-url', CONF.identity.uri]) arg_list.extend(['--os-tenant-name', CONF.keymanager.project_name]) + arg_list.extend(['--os-identity-api-version', '2.0']) arg_list.extend(['--os-username', CONF.keymanager.username, '--os-password', CONF.keymanager.password])