SQS: Align receive_message() response with AWS (#5773)

This commit is contained in:
Bert Blommers 2022-12-14 22:40:18 -01:00 committed by GitHub
parent e0c3862348
commit 8bc856a631
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -583,7 +583,8 @@ SEND_MESSAGE_RESPONSE = """<SendMessageResponse>
</ResponseMetadata> </ResponseMetadata>
</SendMessageResponse>""" </SendMessageResponse>"""
RECEIVE_MESSAGE_RESPONSE = """<ReceiveMessageResponse> RECEIVE_MESSAGE_RESPONSE = """<?xml version="1.0"?>
<ReceiveMessageResponse xmlns="http://queue.amazonaws.com/doc/2012-11-05/">
<ReceiveMessageResult> <ReceiveMessageResult>
{% for message in messages %} {% for message in messages %}
<Message> <Message>
@ -650,7 +651,7 @@ RECEIVE_MESSAGE_RESPONSE = """<ReceiveMessageResponse>
{% if 'Binary' in value.data_type %} {% if 'Binary' in value.data_type %}
<BinaryValue>{{ value.binary_value }}</BinaryValue> <BinaryValue>{{ value.binary_value }}</BinaryValue>
{% else %} {% else %}
<StringValue><![CDATA[{{ value.string_value }}]]></StringValue> <StringValue>{{ value.string_value|e }}</StringValue>
{% endif %} {% endif %}
</Value> </Value>
</MessageAttribute> </MessageAttribute>
@ -659,7 +660,7 @@ RECEIVE_MESSAGE_RESPONSE = """<ReceiveMessageResponse>
{% endfor %} {% endfor %}
</ReceiveMessageResult> </ReceiveMessageResult>
<ResponseMetadata> <ResponseMetadata>
<RequestId></RequestId> <RequestId>5bdc09f4-0a03-5425-8468-55e04a092ed8</RequestId>
</ResponseMetadata> </ResponseMetadata>
</ReceiveMessageResponse>""" </ReceiveMessageResponse>"""