summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Heyman <steve.heyman@rackspace.com>2015-05-14 12:26:19 -0500
committerSteve Heyman <steve.heyman@rackspace.com>2015-05-14 12:26:19 -0500
commit2b5bd9e685a57e8cd9a794fd04312fb44a99ad87 (patch)
treefc96c00bbc86581033a0781bb1f20531647bd90a
parent82daee29fb9ccc191e01b7d8d06b77ffd15e6059 (diff)
downloadpython-barbicanclient-2b5bd9e685a57e8cd9a794fd04312fb44a99ad87.tar.gz
Re-merge CLI test update for auth URL and version
A merge/move lost these changes. Restoring them. Change-Id: I2948ad881109a444bfba7772d303187cdb3a1a89
-rw-r--r--functionaltests/cli/v1/behaviors/base_behaviors.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/functionaltests/cli/v1/behaviors/base_behaviors.py b/functionaltests/cli/v1/behaviors/base_behaviors.py
index bc19d03..3514e6c 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])