Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: comicrelief/lambda-wrapper
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.1.0
Choose a base ref
...
head repository: comicrelief/lambda-wrapper
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.1.1
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Aug 1, 2024

  1. fix: Pass complete SQS event to offline queue consumer (#1208)

    Our current offline SQS event payload contains only the message body.
    This is insufficient in applications where we need to inspect the
    metadata of received messages, and leads to `TypeError` in the consumer
    during testing.
    
    This PR adds the missing fields to the event, trying to be relatively
    accurate. For example, the source queue ARN includes the correct queue
    name and AWS account ID. In terms of overall structure, an `SQSEvent`
    type is helpfully provided in the `@types/aws-lambda` package, which
    I've used to ensure our mocked event meets expectations.
    
    Complete event samples can be found here for reference:
    https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html
    
    Jira: [ENG-3437]
    
    [ENG-3437]: https://comicrelief.atlassian.net/browse/ENG-3437
    seb-cr authored Aug 1, 2024
    Configuration menu
    Copy the full SHA
    e5db5e6 View commit details
    Browse the repository at this point in the history
Loading