Tempest plugin support for message body md5.

Add the property ``checksum`` for message schema.

Implement blueprint support-md5-of-body
Change-Id: Icb82042afb1759f129f09e55c2961f1802ae83b4
This commit is contained in:
yangzhenyu 2018-01-17 11:09:24 +08:00
parent 2c466738b2
commit 92d57f52a1
2 changed files with 12 additions and 6 deletions

View File

@ -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']
}

View File

@ -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']
}