Full response for missed Identity V3 Client
Provide the entire response object for missed methods of the v3 IdentityClient partially implements: blueprint method-return-value-and-move-service-clients-to-lib Change-Id: I5bee18a277c92fdd70d02e69cc215c8fe0859d80
This commit is contained in:
@@ -23,7 +23,7 @@ class TestApiDiscovery(base.BaseIdentityV3Test):
|
|||||||
@test.attr(type='smoke')
|
@test.attr(type='smoke')
|
||||||
@test.idempotent_id('b9232f5e-d9e5-4d97-b96c-28d3db4de1bd')
|
@test.idempotent_id('b9232f5e-d9e5-4d97-b96c-28d3db4de1bd')
|
||||||
def test_api_version_resources(self):
|
def test_api_version_resources(self):
|
||||||
descr = self.non_admin_client.get_api_description()
|
descr = self.non_admin_client.get_api_description()['version']
|
||||||
expected_resources = ('id', 'links', 'media-types', 'status',
|
expected_resources = ('id', 'links', 'media-types', 'status',
|
||||||
'updated')
|
'updated')
|
||||||
|
|
||||||
@@ -34,7 +34,7 @@ class TestApiDiscovery(base.BaseIdentityV3Test):
|
|||||||
@test.attr(type='smoke')
|
@test.attr(type='smoke')
|
||||||
@test.idempotent_id('657c1970-4722-4189-8831-7325f3bc4265')
|
@test.idempotent_id('657c1970-4722-4189-8831-7325f3bc4265')
|
||||||
def test_api_media_types(self):
|
def test_api_media_types(self):
|
||||||
descr = self.non_admin_client.get_api_description()
|
descr = self.non_admin_client.get_api_description()['version']
|
||||||
# Get MIME type bases and descriptions
|
# Get MIME type bases and descriptions
|
||||||
media_types = [(media_type['base'], media_type['type']) for
|
media_types = [(media_type['base'], media_type['type']) for
|
||||||
media_type in descr['media-types']]
|
media_type in descr['media-types']]
|
||||||
@@ -49,7 +49,7 @@ class TestApiDiscovery(base.BaseIdentityV3Test):
|
|||||||
@test.attr(type='smoke')
|
@test.attr(type='smoke')
|
||||||
@test.idempotent_id('8879a470-abfb-47bb-bb8d-5a7fd279ad1e')
|
@test.idempotent_id('8879a470-abfb-47bb-bb8d-5a7fd279ad1e')
|
||||||
def test_api_version_statuses(self):
|
def test_api_version_statuses(self):
|
||||||
descr = self.non_admin_client.get_api_description()
|
descr = self.non_admin_client.get_api_description()['version']
|
||||||
status = descr['status'].lower()
|
status = descr['status'].lower()
|
||||||
supported_statuses = ['current', 'stable', 'experimental',
|
supported_statuses = ['current', 'stable', 'experimental',
|
||||||
'supported', 'deprecated']
|
'supported', 'deprecated']
|
||||||
|
|||||||
@@ -27,7 +27,8 @@ class IdentityV3Client(service_client.ServiceClient):
|
|||||||
url = ''
|
url = ''
|
||||||
resp, body = self.get(url)
|
resp, body = self.get(url)
|
||||||
self.expected_success(200, resp.status)
|
self.expected_success(200, resp.status)
|
||||||
return service_client.ResponseBody(resp, self._parse_resp(body))
|
body = json.loads(body)
|
||||||
|
return service_client.ResponseBody(resp, body)
|
||||||
|
|
||||||
def create_user(self, user_name, password=None, project_id=None,
|
def create_user(self, user_name, password=None, project_id=None,
|
||||||
email=None, domain_id='default', **kwargs):
|
email=None, domain_id='default', **kwargs):
|
||||||
|
|||||||
Reference in New Issue
Block a user