Commit Graph

240 Commits

Author SHA1 Message Date
Bert Blommers
33d3745263
EC2: Add additional VPC Endpoint Services (#7509) 2024-03-22 07:38:57 -01:00
Akira Noda
90bdd72555
Admin: Using ruff format instead of black (#7502) 2024-03-21 19:17:29 -01:00
Bert Blommers
e3330af3fe
Prep release 5.0.3 (#7447) 2024-03-09 20:39:46 -01:00
rafcio19
12460e510d
SQS: message send param validation (#7403) 2024-02-29 08:44:24 -01:00
Bert Blommers
f9add957c9
SQS: send_message() should respect DelaySeconds of 0 (#7373) 2024-02-20 22:07:18 -01:00
Bert Blommers
2b2689de93
SQS: Add missing property SQSManagedSSEEnabled (#7279) 2024-01-30 07:47:43 -01:00
Bert Blommers
dea4a98b64 Techdebt: Remove old/deprecated code (#7220) 2024-01-27 19:38:09 +00:00
Bert Blommers
1f1e0caca3 Core: Add RequestId-header to all responses (#7210) 2024-01-27 19:38:09 +00:00
Bert Blommers
a7f3b367b4 Introduce mock_aws() (#7194) 2024-01-27 19:38:09 +00:00
tungol
8a16a6a862
Techdebt: typing for backends (#7069) 2023-12-01 10:51:28 -01:00
tungol
55c589072f
Admin: sorting imports with ruff (#7075) 2023-11-30 14:55:51 -01:00
Bert Blommers
3d5929f55e
SQS: Ensure all SQS responses are in JSON format (#7057) 2023-11-23 10:04:20 -01:00
Bert Blommers
90e8bb1313
Techdebt: Improve/fix exception handling in tests (#7011) 2023-11-09 22:17:46 -01:00
amlodzianowski
4d4cae08d2
SQS: perform validation on all messages before attempting a send (#6722) 2023-08-25 08:03:18 +00:00
amlodzianowski
873bc9cf1a
fix: broad catch statement for failedInvalidDelay (#6721)
Co-authored-by: Adrian Mlodzianowski <amlodzianowski@logicworks.net>
2023-08-24 17:46:03 +00:00
sophcass
77a09b71b7
Fix for BatchRequestTooLong exception. (#6550)
A BatchRequestTooLong is thrown by AWS if the length of all the messages put together is greater than the AWS limit. See AWS documentation here: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_SendMessageBatch.html#:~:text=Status%20Code%3A%20400-,BatchRequestTooLong,-The%20length%20of.

This change if applied determines the sum of all the messages and throws an exception if the AWS limit is exceeded.

Co-authored-by: Sophie Cassidy <sophie.cassidy@ly.st>
2023-07-22 10:28:21 +00:00
Bert Blommers
e26cfe7dc6
Techdebt: MyPy: Remove unused ignores (#6542) 2023-07-20 15:46:54 +00:00
Bert Blommers
42b03d36ac
SQS: Support JSON format (#6331) 2023-05-24 21:19:40 +00:00
Bert Blommers
1f56b75ccf
Techdebt: MyPy SQS (#6251) 2023-04-24 16:46:01 +00:00
Bert Blommers
2cf0130d13
Prep Release 4.1.7 (#6201) 2023-04-11 14:31:46 +00:00
rafcio19
201e57585b
SQS: Improve deduplication logic (#6184) 2023-04-09 10:13:28 +00:00
Bert Blommers
8bc856a631
SQS: Align receive_message() response with AWS (#5773) 2022-12-14 22:40:18 -01:00
Brian Pandola
7c44e48670
Fix: SQS fails to get newly-visible messages when long polling (#5733)
The [original commit to remove the `sleep` call][1], only considered newly-arriving
messages; but didn't take into account that existing messages could become visible
in a much shorter time duration than the wait timeout.  This commit addresses this
by checking for newly-visible messages at the visibility timeout granularity (seconds),
which is still a major improvement over the original 10 millisecond polling.

[1]: <d560ff002d> "Remove Sleep Call"
2022-12-04 18:00:56 -08:00
Rahi Bhensdadia
97b5e8b3ab
SQS: Implement DelaySeconds validation (#5703) 2022-11-27 20:47:18 -01:00
Bert Blommers
ba4104c38e
Techdebt: Replace string-format with f-strings (for s* dirs) (#5692) 2022-11-21 18:21:34 -01:00
Bert Blommers
ea8718d402
TechDebt: Move BackendDict to base_backend (#5645) 2022-11-10 08:43:20 -01:00
David Laban
d560ff002d
Remove microsleep (#1903)
Use `threading.Condition` instead of `sleep()` to prevent high cpu usage while SQS long polling on an empty queue. 

Ref: #871
Ref: #1916

Co-authored-by: Brian Pandola <bpandola@gmail.com>
2022-11-05 06:09:58 -07:00
Bert Blommers
4f84e2f154
TechDebt - enable pylint rule redefined-outer-scope (#5518) 2022-10-04 16:28:30 +00:00
Bert Blommers
aa7d68a688
Feature: Ability to seed Moto, and make random ID's deterministic (#5492) 2022-09-28 09:35:12 +00:00
Bert Blommers
3d913f8f15
MultiAccount support (#5192) 2022-08-13 09:49:43 +00:00
Bert Blommers
79a2a9d423
Preparation for MultiAccount support (#5157) 2022-06-04 11:30:16 +00:00
Bert Blommers
0fe30b0440
MD5 - set usedforsecurity-parameter for all uses (#5190) 2022-06-03 09:41:30 +00:00
Thomas Rausch
e911341e6a
add indirection to access account id (#5098) 2022-05-08 22:25:40 +00:00
Bert Blommers
56806fb310
SQS - Accept queue-names as QueueUrl-parameter (#5073) 2022-04-27 22:51:51 +00:00
Bert Blommers
647c612c7a
Docs - add SQS:receive_message() (#4958) 2022-03-21 20:58:49 -01:00
Bert Blommers
eed32a5f72
Pylint - Enable more rules on source and tests-directory (#4929) 2022-03-11 20:28:45 -01:00
Bert Blommers
29d01c35bc
Update Black + formatting (#4926) 2022-03-10 13:39:59 -01:00
Bert Blommers
aa522b11ca
SNS Docs - do not specify default region (#4909) 2022-03-03 22:25:06 -01:00
Bert Blommers
f49c81037b
SQS - Use full URL as the physical resource ID (#4864) 2022-02-15 22:26:36 -01:00
Cristopher Pinzón
c25aae0d9a
Allow "True" in SQS Queue boolean attributes (#4830) 2022-02-07 22:53:25 -01:00
Bert Blommers
aa70ee254d
Remove deprecated decorators + boto dependency (#4378) 2022-01-18 14:18:57 -01:00
Sami Jaktholm
ca327e399d
SQS - Improve delete_message_batch() error responses (#4765) 2022-01-15 20:45:43 -01:00
Bert Blommers
d118d592ca
Pylint remaining source code (#4760) 2022-01-14 18:51:49 -01:00
Cristopher Pinzón
b7f0dee4a7
escape windows return character (#4729) 2021-12-30 09:54:15 -01:00
Bert Blommers
cf87e75d6e
Feature: Mock region (#4699) 2021-12-24 20:02:45 -01:00
Todd Morse
ce9fb90663
SQS - prevent a missing policy json (#4706) 2021-12-21 09:34:54 -01:00
rolsen
17c0cedbb2
Add support to remove RedrivePolicy from SQS. (#4664) 2021-12-06 21:42:11 -01:00
Bert Blommers
cbfe962b70
SQS - Align logic around receipt_handles with AWS (#4655) 2021-12-04 21:51:51 -01:00
Kamil Turek
26a732a0e9
Validate message group ID for standard queues (#4635) 2021-11-25 22:32:25 -01:00
Dominik Schubert
88e1aef254
SQS - Fix message attributes disappearing on multiple receives (#4599) 2021-11-19 22:24:47 -01:00