8000 feat: Add support for AWSTraceHeader message system attribute in SQS by 1Utkarsh1 · Pull Request #8956 · getmoto/moto · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: Add support for AWSTraceHeader message system attribute in SQS #8956

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

1Utkarsh1
Copy link

This change enhances the SQS mock to support the AWSTraceHeader message system attribute.

Modifications include:

  • Ensuring Message objects in moto/sqs/models.py correctly store system attributes.
  • Updating SQSBackend.send_message to pass through system attributes.
  • Modifying SQSResponse.receive_message in moto/sqs/responses.py to include AWSTraceHeader in the response when it's present on the message and requested by you.
  • Adding a new test case in tests/test_sqs/test_sqs.py to verify the functionality of sending and receiving messages with the AWSTraceHeader system attribute, covering scenarios where the header is present, absent, requested, or not requested.

This change enhances the SQS mock to support the `AWSTraceHeader`
message system attribute.

Modifications include:
- Ensuring `Message` objects in `moto/sqs/models.py` correctly store
  system attributes.
- Updating `SQSBackend.send_message` to pass through system attributes.
- Modifying `SQSResponse.receive_message` in `moto/sqs/responses.py`
  to include `AWSTraceHeader` in the response when it's present on
  the message and requested by you.
- Adding a new test case in `tests/test_sqs/test_sqs.py` to verify
  the functionality of sending and receiving messages with the
  `AWSTraceHeader` system attribute, covering scenarios where the
  header is present, absent, requested, or not requested.
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.

1 participant
0