commit c00346cb2f9f6d4499bb8c7feee5bf2ac5d7d232 Author: zhufl Date: Wed Sep 9 11:25:26 2020 +0800 Add missing replication_status in group schema replications_status in group info is added from microverion 3.38, and it's not only in the response of show_group, but also in the response of list_groups_with_detail(the api-ref is not correct), so this is to add it to the schema of list_groups_with_detail. The bug report of cinder api-ref is https://bugs.launchpad.net/cinder/+bug/1894834 Change-Id: I0d3e25d601822f9459dd603214bfb08a34159216 partially-implements: blueprint fix-microversion-gap diff --git a/tempest/lib/api_schema/response/volume/groups.py b/tempest/lib/api_schema/response/volume/groups.py index cb31269..f6e4bc2 100644 --- a/tempest/lib/api_schema/response/volume/groups.py +++ b/tempest/lib/api_schema/response/volume/groups.py @@ -64,7 +64,10 @@ show_group = { 'type': 'array', 'items': {'type': 'string', 'format': 'uuid'} }, - 'replication_status': {'type': 'string'} + # TODO(zhufl): replication_status is added in 3.38, we + # should move it to the 3.38 schema file when microversion + # is supported in volume interfaces + 'replication_status': {'type': ['string', 'null']} }, 'additionalProperties': False, 'required': ['status', 'description', 'created_at', @@ -129,6 +132,10 @@ list_groups_with_detail = { 'type': 'array', 'items': {'type': 'string', 'format': 'uuid'} }, + # TODO(zhufl): replication_status is added in 3.38, we + # should move it to the 3.38 schema file when + # microversion is supported in volume interfaces + 'replication_status': {'type': ['string', 'null']} }, 'additionalProperties': False, 'required': ['status', 'description', 'created_at',