From 1a6c15a8a734c772ad5e8a5c281ef7a555d8a95a Mon Sep 17 00:00:00 2001 From: zhufl Date: Tue, 7 Aug 2018 17:21:59 +0800 Subject: [PATCH] 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 --- tempest/lib/api_schema/response/compute/v2_19/servers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tempest/lib/api_schema/response/compute/v2_19/servers.py b/tempest/lib/api_schema/response/compute/v2_19/servers.py index 136e3e1a02..e3e8ad16b9 100644 --- a/tempest/lib/api_schema/response/compute/v2_19/servers.py +++ b/tempest/lib/api_schema/response/compute/v2_19/servers.py @@ -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']}})