Set API version in RestClient

Tempest (at least this area of it) needs to be explicitly told which
version of the Sahara API to use, if the URL in the catalog isn't
already versioned. So, set a certain class property to convince
Tempest to append the API version to the base URL.

Change-Id: I5066f73aa0ace79d8d5e1431f8d741d0d942d9d5
This commit is contained in:
Jeremy Freudberg 2019-01-02 17:21:07 -05:00
parent d31d7311cb
commit 481f5ebd4a
1 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,8 @@ from tempest.lib.common import rest_client
class DataProcessingClient(rest_client.RestClient):
api_version = "v1.1"
def _request_and_check_resp(self, request_func, uri, resp_status):
"""Make a request and check response status code.