From 3505b112a68a8f7c2eda1491e4a5edef40686216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Victoria=20Mart=C3=ADnez=20de=20la=20Cruz?= Date: Fri, 14 Nov 2014 19:19:08 -0300 Subject: [PATCH] Fix Zaqar's cleanup The queues listing in the cleanup was failing because the Project-ID header was missing. This change adds the required header. Change-Id: Ic12fe76206ea1fd6b7d59d48c69389abff564d7b --- rally/osclients.py | 1 + tests/unit/test_osclients.py | 1 + 2 files changed, 2 insertions(+) diff --git a/rally/osclients.py b/rally/osclients.py index d5e1c55c85..165e4a5578 100644 --- a/rally/osclients.py +++ b/rally/osclients.py @@ -274,6 +274,7 @@ class Clients(object): 'os_username': self.endpoint.username, 'os_password': self.endpoint.password, 'os_project_name': self.endpoint.tenant_name, + 'os_project_id': kc.auth_tenant_id, 'os_auth_url': self.endpoint.auth_url, 'insecure': CONF.https_insecure, }}} diff --git a/tests/unit/test_osclients.py b/tests/unit/test_osclients.py index 4ed62abe1f..133b92c159 100644 --- a/tests/unit/test_osclients.py +++ b/tests/unit/test_osclients.py @@ -239,6 +239,7 @@ class OSClientsTestCase(test.TestCase): 'os_username': self.endpoint.username, 'os_password': self.endpoint.password, 'os_project_name': self.endpoint.tenant_name, + 'os_project_id': self.fake_keystone.auth_tenant_id, 'os_auth_url': self.endpoint.auth_url, 'insecure': cfg.CONF.https_insecure, }}}