0ebb8a21a1
Clean Up Testing and Linting * somescriptcleanup * mostgolangci * deplatest * imageversions * usingscratch * movedqueuefrtesting * finishedunittesting * linting * taskfilecontext
26 lines
553 B
Go
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)
|
|
}
|