Fix : SQS Create Queue with attributes (#3345)
* Considering only new attributes while queue creation * Linting Co-authored-by: usmankb <usman@krazybee.com> Co-authored-by: Bert Blommers <info@bertblommers.nl>
This commit is contained in:
parent
1dd5cf08a8
commit
1c3ba83fc2
2 changed files with 15 additions and 15 deletions
|
|
@ -89,6 +89,18 @@ def test_create_queue_with_different_attributes_fail():
|
|||
else:
|
||||
raise RuntimeError("Should of raised QueueAlreadyExists Exception")
|
||||
|
||||
response = sqs.create_queue(
|
||||
QueueName="test-queue1", Attributes={"FifoQueue": "True"}
|
||||
)
|
||||
|
||||
attributes = {"VisibilityTimeout": "60"}
|
||||
sqs.set_queue_attributes(QueueUrl=response.get("QueueUrl"), Attributes=attributes)
|
||||
|
||||
new_response = sqs.create_queue(
|
||||
QueueName="test-queue1", Attributes={"FifoQueue": "True"}
|
||||
)
|
||||
new_response["QueueUrl"].should.equal(response.get("QueueUrl"))
|
||||
|
||||
|
||||
@mock_sqs
|
||||
def test_create_fifo_queue():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue