From 92d57f52a1890a51d89b3c10918e77fcd440ac05 Mon Sep 17 00:00:00 2001 From: yangzhenyu Date: Wed, 17 Jan 2018 11:09:24 +0800 Subject: [PATCH] Tempest plugin support for message body md5. Add the property ``checksum`` for message schema. Implement blueprint support-md5-of-body Change-Id: Icb82042afb1759f129f09e55c2961f1802ae83b4 --- zaqar_tempest_plugin/api_schema/response/v1_1/queues.py | 9 ++++++--- zaqar_tempest_plugin/api_schema/response/v2/queues.py | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/zaqar_tempest_plugin/api_schema/response/v1_1/queues.py b/zaqar_tempest_plugin/api_schema/response/v1_1/queues.py index 92b5b6b..eae28a8 100644 --- a/zaqar_tempest_plugin/api_schema/response/v1_1/queues.py +++ b/zaqar_tempest_plugin/api_schema/response/v1_1/queues.py @@ -150,7 +150,8 @@ list_messages_response = { 'href': {'type': 'string'}, 'ttl': message_ttl, 'age': age, - 'body': {'type': 'object'} + 'body': {'type': 'object'}, + 'checksum': {'type': 'string'}, }, 'required': ['href', 'ttl', 'age', 'body'] } @@ -175,7 +176,8 @@ single_message = { 'ttl': message_ttl, 'age': age, 'body': {'type': 'object'}, - 'id': {'type': 'string'} + 'id': {'type': 'string'}, + 'checksum': {'type': 'string'}, }, 'required': ['href', 'ttl', 'age', 'body', 'id'] } @@ -209,7 +211,8 @@ messages_claimed = { 'ttl': message_ttl, 'age': {'type': 'number'}, 'body': {'type': 'object'}, - 'id': {'type': 'string'} + 'id': {'type': 'string'}, + 'checksum': {'type': 'string'}, }, 'required': ['href', 'ttl', 'age', 'body', 'id'] } diff --git a/zaqar_tempest_plugin/api_schema/response/v2/queues.py b/zaqar_tempest_plugin/api_schema/response/v2/queues.py index e22ffaa..c3abcd4 100644 --- a/zaqar_tempest_plugin/api_schema/response/v2/queues.py +++ b/zaqar_tempest_plugin/api_schema/response/v2/queues.py @@ -150,7 +150,8 @@ list_messages_response = { 'href': {'type': 'string'}, 'ttl': message_ttl, 'age': age, - 'body': {'type': 'object'} + 'body': {'type': 'object'}, + 'checksum': {'type': 'string'}, }, 'required': ['href', 'ttl', 'age', 'body'] } @@ -175,7 +176,8 @@ single_message = { 'ttl': message_ttl, 'age': age, 'body': {'type': 'object'}, - 'id': {'type': 'string'} + 'id': {'type': 'string'}, + 'checksum': {'type': 'string'}, }, 'required': ['href', 'ttl', 'age', 'body', 'id'] } @@ -209,7 +211,8 @@ messages_claimed = { 'ttl': message_ttl, 'age': {'type': 'number'}, 'body': {'type': 'object'}, - 'id': {'type': 'string'} + 'id': {'type': 'string'}, + 'checksum': {'type': 'string'}, }, 'required': ['href', 'ttl', 'age', 'body', 'id'] }