Add response schema validation for show_default_group_type
This is to add response schema validation for show_default_group_type. Change-Id: Iaed564689588b1a4fe0a9118e9de330ec0a63e61 partially-implements: blueprint volume-response-schema-validation
This commit is contained in:
parent
3c272360d4
commit
7454db5d4c
|
@ -73,6 +73,18 @@ show_group_type = {
|
|||
}
|
||||
}
|
||||
|
||||
show_default_group_type = {
|
||||
'status_code': [200],
|
||||
'response_body': {
|
||||
'type': 'object',
|
||||
'properties': {
|
||||
'group_type': common_show_group_type
|
||||
},
|
||||
'additionalProperties': False,
|
||||
'required': ['group_type']
|
||||
}
|
||||
}
|
||||
|
||||
update_group_type = {
|
||||
'status_code': [200],
|
||||
'response_body': {
|
||||
|
|
|
@ -73,7 +73,7 @@ class GroupTypesClient(base_client.BaseClient):
|
|||
url = 'group_types/default'
|
||||
resp, body = self.get(url)
|
||||
body = json.loads(body)
|
||||
self.expected_success(200, resp.status)
|
||||
self.validate_response(schema.show_default_group_type, resp, body)
|
||||
return rest_client.ResponseBody(resp, body)
|
||||
|
||||
def show_group_type(self, group_type_id):
|
||||
|
|
Loading…
Reference in New Issue