From ba8fae61d8356a038309686e6d41e9735f1c547d Mon Sep 17 00:00:00 2001 From: Craig Bryant Date: Wed, 10 Dec 2014 09:19:47 -0700 Subject: [PATCH] Fix utils.py to work with the new keystone client This allows measurement_test.py to run Change-Id: I2c097935442d2e6eca2c290cfb4329ec995b0b17 --- tests/utils.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/utils.py b/tests/utils.py index 59d4877..d25e92d 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -115,10 +115,11 @@ def create_mon_client(): def get_token(os_username, os_password, os_project_name, os_auth_url): - keystone = Keystone(os_auth_url, - os_username, - os_password, - os_project_name) + kwargs = { 'keystone_url': os_auth_url, + 'username': os_username, + 'password': os_password, + 'project_domain_name':os_project_name} + keystone = Keystone(kwargs) return keystone.refresh_token()