Add mising timeout to ApplicationCatalogClient

Requests made by tests using this client were not specifiying a timeout,
causing them to appear to hang indefinitely when there's a problem.

Change-Id: Ibcbe7a4af8566339c68265c11df9a09ebbe7f6ca
This commit is contained in:
Paul Bourke 2017-04-19 16:49:51 +01:00
parent cf4eb0cba2
commit b158b75d2e
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ class ApplicationCatalogClient(rest_client.RestClient):
endpoint = self.base_url
url = endpoint + uri
resp = requests.post(url, files={package_name: files}, data=post_body,
headers=headers)
headers=headers, timeout=self.build_timeout)
self.expected_success(200, resp.status_code)
return self._parse_resp(resp.text)