grafana / k6-jslib-aws

Javascript Library allowing to interact with AWS resources from k6 scripts
Apache License 2.0
18 stars 29 forks source link

Add support for SQS FIFO Queue #37

Closed jdinsel-xealth closed 1 year ago

jdinsel-xealth commented 1 year ago

Story

To send a message to an AWS SQS FIFO queue, a message needs to have a MessageGroupId field. Without this, the sendMessage call will fail.

Changes

  1. Added optional messageDeduplicationId and messageGroupId to the SendMessageRequestParameters interface
  2. Added a _buildBody method that will add these values from the Request to the Form

Tests

This was tested locally with localstack using a FIFO queue. I added IDs to the SendMessageRequestParameters object passed to sendMessage and witnessed localstack accept the messages into the queue.

CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.