From 54ea756a746e7c2e70ca4891d254333e56625672 Mon Sep 17 00:00:00 2001 From: zhufl Date: Tue, 14 Aug 2018 16:08:38 +0800 Subject: [PATCH] Fix disabled_reason's type in services schema disable_reason in services schema can be null when status is enabled, so this is to add null in disable_reason's type. https://developer.openstack.org/api-ref/compute/#update-compute-service Change-Id: I5478eff73675d0f236acddfb5387cc8cd9e91a5c partially-implements: blueprint full-schema-for-all-microversions --- tempest/lib/api_schema/response/compute/v2_53/services.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tempest/lib/api_schema/response/compute/v2_53/services.py b/tempest/lib/api_schema/response/compute/v2_53/services.py index aa132a915e..97b0c72608 100644 --- a/tempest/lib/api_schema/response/compute/v2_53/services.py +++ b/tempest/lib/api_schema/response/compute/v2_53/services.py @@ -42,7 +42,8 @@ update_service = { 'properties': { 'id': {'type': 'string', 'format': 'uuid'}, 'binary': {'type': 'string'}, - 'disabled_reason': {'type': 'string'}, + # disabled_reason can be null when status is enabled. + 'disabled_reason': {'type': ['string', 'null']}, 'host': {'type': 'string'}, 'state': {'type': 'string'}, 'status': {'type': 'string'},