From 52cbdd72e75963f2879659a6a4bd60a210a2174d Mon Sep 17 00:00:00 2001 From: Kevin Neal Date: Sat, 2 May 2020 16:40:52 -0700 Subject: [PATCH] update SQS MaximumMessageSize from 64K to 256K --- moto/sqs/models.py | 2 +- tests/test_sqs/test_sqs.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/moto/sqs/models.py b/moto/sqs/models.py index a54d91c43..f88d906b9 100644 --- a/moto/sqs/models.py +++ b/moto/sqs/models.py @@ -230,7 +230,7 @@ class Queue(BaseModel): "FifoQueue": "false", "KmsDataKeyReusePeriodSeconds": 300, # five minutes "KmsMasterKeyId": None, - "MaximumMessageSize": int(64 << 10), + "MaximumMessageSize": int(64 << 12), "MessageRetentionPeriod": 86400 * 4, # four days "Policy": None, "ReceiveMessageWaitTimeSeconds": 0, diff --git a/tests/test_sqs/test_sqs.py b/tests/test_sqs/test_sqs.py index 9deb8d8e2..01e34de0b 100644 --- a/tests/test_sqs/test_sqs.py +++ b/tests/test_sqs/test_sqs.py @@ -384,7 +384,7 @@ def test_get_queue_attributes(): response["Attributes"]["CreatedTimestamp"].should.be.a(six.string_types) response["Attributes"]["DelaySeconds"].should.equal("0") response["Attributes"]["LastModifiedTimestamp"].should.be.a(six.string_types) - response["Attributes"]["MaximumMessageSize"].should.equal("65536") + response["Attributes"]["MaximumMessageSize"].should.equal("262144") response["Attributes"]["MessageRetentionPeriod"].should.equal("345600") response["Attributes"]["QueueArn"].should.equal( "arn:aws:sqs:us-east-1:{}:test-queue".format(ACCOUNT_ID) @@ -406,7 +406,7 @@ def test_get_queue_attributes(): response["Attributes"].should.equal( { "ApproximateNumberOfMessages": "0", - "MaximumMessageSize": "65536", + "MaximumMessageSize": "262144", "QueueArn": "arn:aws:sqs:us-east-1:{}:test-queue".format(ACCOUNT_ID), "VisibilityTimeout": "30", "RedrivePolicy": json.dumps(