Merge pull request #2952 from khneal/sqs_update_MaximumMessageSize

update SQS MaximumMessageSize from 64K to 256K
This commit is contained in:
Steve Pulec 2020-05-02 20:15:04 -05:00 committed by GitHub
commit 3167f4aeb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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(