From ee2c68740cb9688644532a9a6d0975b15a0bff38 Mon Sep 17 00:00:00 2001 From: Steve Baker Date: Tue, 25 Jun 2013 11:16:40 +1200 Subject: [PATCH] Always include credentials for heat stack create. Change-Id: I32cdfd5811dc03fe5cd441df46173e5739f1adc3 --- .../services/orchestration/json/orchestration_client.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tempest/services/orchestration/json/orchestration_client.py b/tempest/services/orchestration/json/orchestration_client.py index 6b0e7e305f..e2d1f2b382 100644 --- a/tempest/services/orchestration/json/orchestration_client.py +++ b/tempest/services/orchestration/json/orchestration_client.py @@ -59,7 +59,14 @@ class OrchestrationClient(rest_client.RestClient): post_body['template_url'] = template_url body = json.dumps(post_body) uri = 'stacks' - resp, body = self.post(uri, headers=self.headers, body=body) + + # Password must be provided on stack create so that heat + # can perform future operations on behalf of the user + headers = dict(self.headers) + headers['X-Auth-Key'] = self.password + headers['X-Auth-User'] = self.user + + resp, body = self.post(uri, headers=headers, body=body) return resp, body def get_stack(self, stack_identifier):