From 77b3eb15b1049785bbfce1ef4f1a06c7e4c01265 Mon Sep 17 00:00:00 2001 From: ghanshyam Date: Wed, 8 Feb 2017 06:53:42 +0000 Subject: [PATCH] Fix AZ List Detail schema to allow hosts as None List AZ with Details response can return host as None for non available AZ from nova. But response schema [1] always expect host as non-None value which is not true for non available AZ on nova side. Change-Id: I015ea26eb47ef179d55f3e452e871bfeec406365 Closes-Bug: #1662781 --- .../lib/api_schema/response/compute/v2_1/availability_zone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tempest/lib/api_schema/response/compute/v2_1/availability_zone.py b/tempest/lib/api_schema/response/compute/v2_1/availability_zone.py index f7b77a16ea..0dc28c3788 100644 --- a/tempest/lib/api_schema/response/compute/v2_1/availability_zone.py +++ b/tempest/lib/api_schema/response/compute/v2_1/availability_zone.py @@ -51,7 +51,7 @@ base = { } detail = { - 'type': 'object', + 'type': ['object', 'null'], 'patternProperties': { # NOTE: Here is for a hostname '^[a-zA-Z0-9-_.]+$': {