Merged in feature/part (pull request #113)

Size Import Parts

* parts

* think

* workingpart

* textout
This commit is contained in:
Michael McGuinness
2025-04-08 12:44:09 +00:00
parent 60812aba91
commit edc50c7510
21 changed files with 873 additions and 66 deletions
@@ -38,11 +38,18 @@ func TestTriggerExtract(t *testing.T) {
bucket := "bucket_name"
key := "/i/am/here"
hash := "hhasshhh"
clientId := "AA"
jobId := "hello"
triggerId := uuid.New()
pool.ExpectBegin()
pool.ExpectQuery("name: AddDocumentTextTrigger :one").WithArgs(cleanId, pgxmock.AnyArg()).WillReturnRows(
pool.ExpectQuery("name: GetTextractOutputCurrentPart :one").WithArgs(&clientId, pgxmock.AnyArg()).
WillReturnRows(
pgxmock.NewRows([]string{"part", "count"}).
AddRow(0, 2),
)
pool.ExpectQuery("name: AddDocumentTextTrigger :one").WithArgs(cleanId, pgxmock.AnyArg(), pgxmock.AnyArg(), uint16(0)).WillReturnRows(
pgxmock.NewRows([]string{"id"}).AddRow(triggerId),
)
@@ -64,7 +71,7 @@ func TestTriggerExtract(t *testing.T) {
err = svc.triggerExtract(ctx, &repository.Currentcleanentry{
ID: cleanId,
Clientid: "AA",
Clientid: clientId,
Key: &key,
Bucket: &bucket,
Hash: &hash,