Merged in feature/part (pull request #113)
Size Import Parts * parts * think * workingpart * textout
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user