Fix:SQS md5 calculation for custom string data type. (#3346)

* Fix:SQS md5 calculation for custom string data type.

* Linting

Co-authored-by: Bert Blommers <info@bertblommers.nl>
This commit is contained in:
usmangani1 2020-09-30 23:10:00 +05:30 committed by GitHub
commit f9ce99f0d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 10 deletions

View file

@ -658,6 +658,17 @@ def test_send_receive_message_with_attributes_with_labels():
"994258b45346a2cc3f9cbb611aa7af30"
)
response = queue.send_message(
MessageBody="test message",
MessageAttributes={
"somevalue": {"StringValue": "somevalue", "DataType": "String.custom",}
},
)
response.get("MD5OfMessageAttributes").should.equal(
"9e05cca738e70ff6c6041e82d5e77ef1"
)
@mock_sqs
def test_send_receive_message_timestamps():