Skip to content

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