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"
|
||||
|
||||
querysyncrunner "queryorchestration/api/querySyncRunner"
|
||||
"queryorchestration/internal/database"
|
||||
"queryorchestration/internal/database/repository"
|
||||
resultsync "queryorchestration/internal/query/result/sync"
|
||||
querysync "queryorchestration/internal/query/sync"
|
||||
@@ -63,19 +62,20 @@ func TestQueryRunner(t *testing.T) {
|
||||
Body: &body,
|
||||
}
|
||||
|
||||
reqId := uuid.New()
|
||||
qs := []uuid.UUID{
|
||||
uuid.New(),
|
||||
reqId,
|
||||
}
|
||||
|
||||
pool.ExpectQuery("name: IsDocumentTextExtracted :one").WithArgs(database.MustToDBUUID(doc.ID)).
|
||||
pool.ExpectQuery("name: IsDocumentTextExtracted :one").WithArgs(doc.ID).
|
||||
WillReturnRows(
|
||||
pgxmock.NewRows([]string{"isextracted"}).
|
||||
AddRow(true),
|
||||
)
|
||||
pool.ExpectQuery("name: ListUnsyncedNoDepsQueriesByDocId :many").WithArgs(database.MustToDBUUID(doc.ID)).
|
||||
pool.ExpectQuery("name: ListUnsyncedNoDepsQueriesByDocId :many").WithArgs(&doc.ID).
|
||||
WillReturnRows(
|
||||
pgxmock.NewRows([]string{"id"}).
|
||||
AddRow(database.MustToDBUUID(qs[0])),
|
||||
AddRow(&reqId),
|
||||
)
|
||||
|
||||
mockSQS.EXPECT().
|
||||
|
||||
Reference in New Issue
Block a user