Merged in feature/document (pull request #36)
Document CRUD * doccreate * dochashlocandget * depsandtodo
This commit is contained in:
@@ -6,9 +6,9 @@ import (
|
||||
controllers "queryorchestration/api/queryRunner"
|
||||
"queryorchestration/internal/database"
|
||||
"queryorchestration/internal/database/repository"
|
||||
documentsync "queryorchestration/internal/document/sync"
|
||||
"queryorchestration/internal/job/collector"
|
||||
"queryorchestration/internal/query"
|
||||
"queryorchestration/internal/query/document"
|
||||
"testing"
|
||||
|
||||
"github.com/aws/aws-sdk-go-v2/service/sqs/types"
|
||||
@@ -32,19 +32,20 @@ func TestQueryRunner(t *testing.T) {
|
||||
Pool: pool,
|
||||
}
|
||||
|
||||
svc := document.New(db, &document.Services{
|
||||
svc := documentsync.New(db, &documentsync.Services{
|
||||
Collector: collector.New(db, &collector.Services{
|
||||
Query: query.New(db),
|
||||
}),
|
||||
})
|
||||
|
||||
runner := controllers.NewQueryRunner(svc, validator.New())
|
||||
runner := controllers.NewQueryRunner(validator.New(), &controllers.Services{
|
||||
DocumentSync: svc,
|
||||
})
|
||||
assert.NotNil(t, runner)
|
||||
|
||||
doc := document.Document{
|
||||
doc := documentsync.Document{
|
||||
ID: uuid.New(),
|
||||
JobID: uuid.New(),
|
||||
Name: "document_name",
|
||||
CleanVersion: 1,
|
||||
TextVersion: 1,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user