Merged in feature/movefromtrigger (pull request #164)

Single Text Queue

* notrigger
This commit is contained in:
Michael McGuinness
2025-06-10 12:57:30 +00:00
parent 76e4f5790f
commit 693457ce2d
17 changed files with 65 additions and 70 deletions
+4 -4
View File
@@ -13,7 +13,7 @@ import (
documentclean "queryorchestration/internal/document/clean"
"queryorchestration/internal/server/runner"
"queryorchestration/internal/serviceconfig/objectstore"
"queryorchestration/internal/serviceconfig/queue/documenttexttrigger"
"queryorchestration/internal/serviceconfig/queue/documenttext"
"queryorchestration/internal/test"
objectstoremock "queryorchestration/mocks/objectstore"
@@ -26,7 +26,7 @@ import (
type DocCleanConfig struct {
runner.BaseConfig[doccleanrunner.Body]
documenttexttrigger.DocTextTriggerConfig
documenttext.DocTextConfig
objectstore.ObjectStoreConfig
}
@@ -37,7 +37,7 @@ func TestDocCleanRunner(t *testing.T) {
acfg := test.CreateAWSContainer(t, cfg)
test.SetQueueClient(t, t.Context(), cfg, acfg.ExternalEndpoint)
cfg.DocumentTextTriggerURL = test.CreateQueue(t, cfg, test.DocTextRunnerName)
cfg.DocumentTextURL = test.CreateQueue(t, cfg, test.DocTextRunnerName)
mockStore := objectstoremock.NewMockS3Client(t)
cfg.StoreClient = mockStore
@@ -104,7 +104,7 @@ func TestDocCleanRunner(t *testing.T) {
}
assert.True(t, runner.Process(t.Context(), bod))
test.AssertMessageBody(t, cfg, cfg.GetDocumentTextTriggerURL(), regexp.MustCompile(fmt.Sprintf("{\"id\":\"%s\"}", docId.String())))
test.AssertMessageBody(t, cfg, cfg.GetDocumentTextURL(), regexp.MustCompile(fmt.Sprintf("{\"id\":\"%s\"}", docId.String())))
}
const pdfHelloWorld = `%PDF-1.4