Including Message attributes when ALL is passed (#3393)
* Including Message attributes when ALL is passes * Added tests Co-authored-by: usmankb <usman@krazybee.com>
This commit is contained in:
parent
2fe3aee359
commit
fcc85a9645
2 changed files with 24 additions and 1 deletions
|
|
@ -1320,6 +1320,28 @@ def test_message_attributes_in_receive_message():
|
|||
|
||||
messages[0].get("MessageAttributes").should.equal(None)
|
||||
|
||||
queue.send_message(
|
||||
MessageBody=body_one,
|
||||
MessageAttributes={
|
||||
"timestamp": {
|
||||
"StringValue": "1493147359900",
|
||||
"DataType": "Number.java.lang.Long",
|
||||
}
|
||||
},
|
||||
)
|
||||
messages = conn.receive_message(
|
||||
QueueUrl=queue.url, MaxNumberOfMessages=2, MessageAttributeNames=["All"]
|
||||
)["Messages"]
|
||||
|
||||
messages[0]["MessageAttributes"].should.equal(
|
||||
{
|
||||
"timestamp": {
|
||||
"StringValue": "1493147359900",
|
||||
"DataType": "Number.java.lang.Long",
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@mock_sqs
|
||||
def test_send_message_batch_errors():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue