Add comment for schema change in microversion 2.19

This is to add comment for the schema change in microversion
2.19, to make code more readable.

Change-Id: I189577bb0df713a281a2f11d8336e4ebd1862a95
partially-implements: blueprint full-schema-for-all-microversions
This commit is contained in:
zhufl
2018-08-07 17:21:59 +08:00
parent 56354cb4a6
commit 1a6c15a8a7

View File

@@ -17,6 +17,9 @@ import copy
from tempest.lib.api_schema.response.compute.v2_16 import servers \
as serversv216
# Compute microversion 2.19:
# 1. New attributes in 'server' dict.
# 'description'
get_server = copy.deepcopy(serversv216.get_server)
get_server['response_body']['properties']['server'][
'properties'].update({'description': {'type': ['string', 'null']}})