Fix wrong strict assertion of quota class set id
Although the API spec states that only 'default' is supported, the os-quota-class-sets API has never implemented the actual validation and has echoed the id set in url. Closes-Bug: #2143057 Change-Id: Icc582dfb5fb71ee859d48fcfeca4fd31ca2780fb Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
@@ -126,7 +126,7 @@ show_response = {
|
||||
'additionalProperties': False,
|
||||
}
|
||||
show_response['properties']['quota_class_set']['properties'].update({
|
||||
'id': {'type': 'string', 'const': 'default'},
|
||||
'id': {'type': 'string'},
|
||||
})
|
||||
show_response['properties']['quota_class_set']['required'].append('id')
|
||||
|
||||
@@ -135,7 +135,7 @@ show_response_v250['properties']['quota_class_set'] = copy.deepcopy(
|
||||
_quota_response_v250
|
||||
)
|
||||
show_response_v250['properties']['quota_class_set']['properties'].update({
|
||||
'id': {'type': 'string', 'const': 'default'},
|
||||
'id': {'type': 'string'},
|
||||
})
|
||||
show_response_v250['properties']['quota_class_set']['required'].append('id')
|
||||
|
||||
@@ -144,7 +144,7 @@ show_response_v257['properties']['quota_class_set'] = copy.deepcopy(
|
||||
_quota_response_v257
|
||||
)
|
||||
show_response_v257['properties']['quota_class_set']['properties'].update({
|
||||
'id': {'type': 'string', 'const': 'default'},
|
||||
'id': {'type': 'string'},
|
||||
})
|
||||
show_response_v257['properties']['quota_class_set']['required'].append('id')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user