Merged in feature/docinit (pull request #43)
Move queue to config * movequeue * passtests
This commit is contained in:
@@ -3,11 +3,10 @@ package integration_test
|
||||
import (
|
||||
"context"
|
||||
"queryorchestration/internal/query"
|
||||
"queryorchestration/internal/server/queue"
|
||||
"queryorchestration/internal/serviceconfig/queue"
|
||||
"queryorchestration/internal/test"
|
||||
"testing"
|
||||
|
||||
"github.com/aws/aws-sdk-go-v2/service/sqs/types"
|
||||
"github.com/google/uuid"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
@@ -29,12 +28,11 @@ func TestQueryRunner(t *testing.T) {
|
||||
CleanVersion: int32(1),
|
||||
TextVersion: int32(1),
|
||||
}
|
||||
qcfg := &queue.Config{
|
||||
URL: c.URI,
|
||||
Client: cfg.QueueClient,
|
||||
}
|
||||
|
||||
err := queue.Send(ctx, qcfg, document, map[string]types.MessageAttributeValue{})
|
||||
err := cfg.SendToQueue(ctx, &queue.SendParams{
|
||||
QueueURL: c.URI,
|
||||
Body: document,
|
||||
})
|
||||
assert.NoError(t, err)
|
||||
|
||||
// TODO - check document output
|
||||
|
||||
Reference in New Issue
Block a user