functionaltests: Add response headers to logging info
Notably, these should include X-Openstack-Request-Id which will help correlate server logs with test failures. Change-Id: I7471afb30afceb9e44b30e6749a022ef3d005a36
This commit is contained in:
parent
af35f4e475
commit
5a294dd94a
@ -119,6 +119,7 @@ class BarbicanClient(object):
|
||||
'method': request_kwargs.get('method'),
|
||||
'url': request_kwargs.get('url'),
|
||||
'headers': response.request.headers,
|
||||
'response_headers': response.headers,
|
||||
}
|
||||
|
||||
format_kwargs['body'] = self._attempt_to_stringify_content(
|
||||
@ -130,6 +131,7 @@ class BarbicanClient(object):
|
||||
return ('{code} {method} {url}\n'
|
||||
'Request Headers: {headers}\n'
|
||||
'Request Body: {body}\n'
|
||||
'Response Headers: {response_headers}\n'
|
||||
'Response: {response_body}').format(**format_kwargs)
|
||||
|
||||
def log_request(self, request_kwargs, response, user_name):
|
||||
|
Loading…
Reference in New Issue
Block a user