Merged in feature/textextract (pull request #108)
Start adding Textract + UUID changes * base * startclient * ts * short * tests
This commit is contained in:
@@ -7,7 +7,6 @@ import (
|
||||
"testing"
|
||||
|
||||
queryversionsyncrunner "queryorchestration/api/queryVersionSyncRunner"
|
||||
"queryorchestration/internal/database"
|
||||
"queryorchestration/internal/database/repository"
|
||||
queryversionsync "queryorchestration/internal/query/versionsync"
|
||||
"queryorchestration/internal/server/runner"
|
||||
@@ -60,16 +59,18 @@ func TestQueryRunner(t *testing.T) {
|
||||
Body: &body,
|
||||
}
|
||||
|
||||
clientOne := uuid.New()
|
||||
clientTwo := uuid.New()
|
||||
clientIds := []uuid.UUID{
|
||||
uuid.New(),
|
||||
uuid.New(),
|
||||
clientOne,
|
||||
clientTwo,
|
||||
}
|
||||
|
||||
pool.ExpectQuery("name: ListQueryClientIDs :many").WithArgs(database.MustToDBUUID(doc.ID)).
|
||||
pool.ExpectQuery("name: ListQueryClientIDs :many").WithArgs(&doc.ID).
|
||||
WillReturnRows(
|
||||
pgxmock.NewRows([]string{"clientId"}).
|
||||
AddRow(database.MustToDBUUID(clientIds[0])).
|
||||
AddRow(database.MustToDBUUID(clientIds[1])),
|
||||
AddRow(clientOne).
|
||||
AddRow(clientTwo),
|
||||
)
|
||||
|
||||
mockSQS.EXPECT().
|
||||
|
||||
Reference in New Issue
Block a user