Browse Source

Merge "Add response schema validation for show_default_group_type"

changes/08/743708/1
Zuul 1 week ago
committed by Gerrit Code Review
parent
commit
03b20d858a
2 changed files with 13 additions and 1 deletions
  1. +12
    -0
      tempest/lib/api_schema/response/volume/group_types.py
  2. +1
    -1
      tempest/lib/services/volume/v3/group_types_client.py

+ 12
- 0
tempest/lib/api_schema/response/volume/group_types.py View File

@@ -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': {


+ 1
- 1
tempest/lib/services/volume/v3/group_types_client.py View File

@@ -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…
Cancel
Save