Add version and min_version to version API schema
Since commit-id Id464a07d624d0e228fe0aa66a04c8e51f292ba0c of Nova,
version and min_version have been added to Nova's version API response.
These parameters notice available API microversions to clients.
This patch adds them to the response schema of version API.
Change-Id: Ic349d549ea223369a07a37795eb6e0a14849a2ee
Related-Bug: #1443375
diff --git a/tempest/api_schema/response/compute/version.py b/tempest/api_schema/response/compute/version.py
index 32c6d96..6579c63 100644
--- a/tempest/api_schema/response/compute/version.py
+++ b/tempest/api_schema/response/compute/version.py
@@ -45,8 +45,12 @@
}
},
'status': {'type': 'string'},
- 'updated': {'type': 'string', 'format': 'date-time'}
+ 'updated': {'type': 'string', 'format': 'date-time'},
+ 'version': {'type': 'string'},
+ 'min_version': {'type': 'string'}
},
+ # NOTE: version and min_version have been added since Kilo,
+ # so they should not be required.
'required': ['id', 'links', 'media-types', 'status', 'updated']
}
},