Fix microversion 2.98 doc/tests for update/rebuild APIs
microversion 2.98 changed the GET and GET list details API response to expand the image field - https://review.opendev.org/c/openstack/nova/+/939649 but when we change the views/servers.py then update server and rebuild server API response also gets updated. - https://review.opendev.org/c/openstack/nova/+/939649/12/nova/api/openstack/compute/views/servers.py#595 The microversion change actually changed the response for the update and rebuild API but did not update the documentation about this change. Neither added test for rebuild and update which verify the response change. Since microversion 2.75, we have made all these 4 APIs response consistent. Implements: blueprint image-properties-in-server-show Change-Id: Ifc2edc59c601391a31fd8953c742969e5b368767
This commit is contained in:
committed by
Ghanshyam
parent
f9e89bc0d1
commit
7a00971b8f
@@ -959,6 +959,11 @@ Response
|
||||
- host_status: host_status_update_rebuild
|
||||
- key_name: key_name_resp_update
|
||||
|
||||
**Example Update Server Details (2.98)**
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/servers/v2.98/server-update-resp.json
|
||||
:language: javascript
|
||||
|
||||
**Example Update Server Details (2.96)**
|
||||
|
||||
.. literalinclude:: ../../doc/api_samples/servers/v2.96/server-update-resp.json
|
||||
|
||||
Reference in New Issue
Block a user