Skip to content

Commit

Permalink
Handle extra headers for list operations
Browse files Browse the repository at this point in the history
  • Loading branch information
afrittoli committed Nov 2, 2017
1 parent bc4b8c1 commit 1472767
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion designate_tempest_plugin/services/dns/json/base.py
Expand Up @@ -159,9 +159,10 @@ def _list_request(self, resource, params=None):
include in the request URI.
:returns: Serialized object as a dictionary.
"""
headers = params.pop('headers', {})
uri = self.get_uri(resource, params=params)

resp, body = self.get(uri)
resp, body = self.get(uri, headers=headers, extra_headers=True)

self.expected_success(self.LIST_STATUS_CODES, resp.status)

Expand Down

0 comments on commit 1472767

Please sign in to comment.