Files
floci/src/test
Stuart Lang ffd7779c5c fix(sqs): honor AttributeNames/MessageSystemAttributeNames on ReceiveMessage (#784)
* fix(sqs): honor AttributeNames/MessageSystemAttributeNames on ReceiveMessage

ReceiveMessage previously emitted a fixed set of system attributes
(ApproximateReceiveCount, SentTimestamp, plus FIFO fields when
present) regardless of what the caller asked for. AWS instead returns
exactly the attributes the request selects:

- empty list -> no system attributes
- ["SenderId"] -> only SenderId
- ["All"] -> SenderId, SentTimestamp, ApproximateReceiveCount,
  ApproximateFirstReceiveTimestamp (and FIFO MessageGroupId,
  SequenceNumber, MessageDeduplicationId when applicable)

Both the legacy AttributeName.N / AttributeNames parameter and the
modern MessageSystemAttributeName.N / MessageSystemAttributeNames
parameter are honored.

SenderId derives from the account ID parsed from the queue URL
(falling back to the configured default account), matching the
multi-tenancy isolation introduced in #753. A new
firstReceiveTimestamp field on Message backs
ApproximateFirstReceiveTimestamp and is set on first claim.

Refs #768.

* test(sqs): cover legacy AttributeNames and Query-protocol filtering

Adds Query-protocol receive-with-filter coverage and a legacy
AttributeNames case to the JSON test, and clarifies the senderIdFor
Javadoc to reflect actual fallback order (queue URL → request context
→ default).
2026-05-14 06:42:39 -05:00
..