Merge "Add server schema for microversion 2.26"

This commit is contained in:
Zuul 2018-08-07 09:25:45 +00:00 committed by Gerrit Code Review
commit 06bd90defa
1 changed files with 8 additions and 5 deletions

View File

@ -15,7 +15,6 @@
import copy
from tempest.lib.api_schema.response.compute.v2_1 import servers as servers21
from tempest.lib.api_schema.response.compute.v2_19 import servers as servers219
# The 2.26 microversion changes the server GET and (detailed) LIST responses to
@ -62,10 +61,6 @@ rebuild_server_with_admin_pass['response_body']['properties']['server'][
rebuild_server_with_admin_pass['response_body']['properties']['server'][
'required'].append('tags')
# list response schema wasn't changed for v2.26 so use v2.1
list_servers = copy.deepcopy(servers21.list_servers)
list_tags = {
'status_code': [200],
'response_body': {
@ -98,3 +93,11 @@ update_tag = {
}
delete_tag = {'status_code': [204]}
# NOTE(gmann): Below are the unchanged schema in this microversion. We need
# to keep this schema in this file to have the generic way to select the
# right schema based on self.schema_versions_info mapping in service client.
# ****** Schemas unchanged since microversion 2.19 ******
list_servers = copy.deepcopy(servers219.list_servers)
show_server_diagnostics = copy.deepcopy(servers219.show_server_diagnostics)
get_remote_consoles = copy.deepcopy(servers219.get_remote_consoles)