Skip to content

Make strict adherence to AWS SQS purge queue behaviour optional - #10409

Merged
bblommers merged 1 commit into
getmoto:masterfrom
jeropaul:master
Oct 27, 2026
Merged

bblommers merged 1 commit into
getmoto:masterfrom
jeropaul:master

Conversation

@jeropaul

Copy link
Copy Markdown
Contributor

resolves #10404

Related Issue #10233
Related PR #10234

One use-case for Moto and Moto server is in tests to mock AWS endpoints. Sometimes that means strict adherence to AWS is undesirable, IMO a limit of one SQS purge queue request every 60 seconds is such a scenario. This PR allows for users to optionally disable this behaviour by setting an environment property MOTO_SQS_ENFORCE_STRICT_QUEUE_PURGE_BEHAVIOUR to false

@codecov

codecov Bot commented Oct 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.47%. Comparing base (dd8bf40) to head (3945f7a).
⚠️ Report is 21 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #10409   +/-   ##
=======================================
  Coverage   93.47%   93.47%           
=======================================
  Files        1346     1346           
  Lines      123451   123454    +3     
=======================================
+ Hits       115396   115401    +5     
+ Misses       8055     8053    -2     
Flag Coverage Δ
servertests 28.22% <50.00%> (+<0.01%) ⬆️
unittests 93.45% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bblommers bblommers left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a fair point @jeropaul - thanks for opening the PR to enable this

@bblommers bblommers added this to the 5.2.5 milestone Oct 27, 2026
@bblommers
bblommers merged commit db82cbc into getmoto:master Oct 27, 2026
72 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Restricting S3 Purge queue to once every 60 seconds is very restrictive

2 participants