commit | 77b3eb15b1049785bbfce1ef4f1a06c7e4c01265 | [log] [tgz] |
---|---|---|
author | ghanshyam <ghanshyammann@gmail.com> | Wed Feb 08 06:53:42 2017 +0000 |
committer | ghanshyam <ghanshyammann@gmail.com> | Wed Feb 08 06:53:42 2017 +0000 |
tree | b3e10583b741009ac4a0881832848df870cbce58 | |
parent | c4b26209add07a3b5a5dcfa3cbc39ccc4362b641 [diff] |
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
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 f7b77a1..0dc28c3 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 @@ } detail = { - 'type': 'object', + 'type': ['object', 'null'], 'patternProperties': { # NOTE: Here is for a hostname '^[a-zA-Z0-9-_.]+$': {