Files
query-orchestration/internal/queue/send_test.go
T
Michael McGuinness 0ebb8a21a1 Merged in bugfix/cleanup (pull request #10)
Clean Up Testing and Linting

* somescriptcleanup

* mostgolangci

* deplatest

* imageversions

* usingscratch

* movedqueuefrtesting

* finishedunittesting

* linting

* taskfilecontext
2025-01-10 11:12:03 +00:00

26 lines
553 B
Go

package queue_test
import (
"context"
"queryorchestration/internal/queue"
"testing"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/service/sqs/types"
"github.com/stretchr/testify/assert"
)
func TestSend(t *testing.T) {
ctx := context.Background()
queueConfig, cleanup := createQueue(t, ctx)
defer cleanup()
err := queue.Send(ctx, queueConfig.Config, "{}", map[string]types.MessageAttributeValue{
"type": {
DataType: aws.String("String"),
StringValue: aws.String("EXAMPLE_TYPE"),
},
})
assert.Nil(t, err)
}