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:
Takashi Kajinami
2026-03-03 00:07:45 +09:00
parent 7a6e13454d
commit c05c78dbff
@@ -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')