Merged in feature/testwithlogs (pull request #65)

Query Version Sync Runner

* testing

* queryversiosyncworking

* update

* tests

* fixtests
This commit is contained in:
Michael McGuinness
2025-02-14 10:56:24 +00:00
parent 477518e5eb
commit 0df3d16976
91 changed files with 1737 additions and 624 deletions
+8 -1
View File
@@ -17,8 +17,10 @@ import (
"queryorchestration/internal/query"
"queryorchestration/internal/query/result"
querytest "queryorchestration/internal/query/test"
queryupdate "queryorchestration/internal/query/update"
service "queryorchestration/internal/server/service"
"queryorchestration/internal/serviceconfig/queue/jobsync"
"queryorchestration/internal/serviceconfig/queue/queryversionsync"
"github.com/getkin/kin-openapi/openapi3"
_ "github.com/lib/pq"
@@ -27,6 +29,7 @@ import (
type QueryServiceConfig struct {
service.BaseConfig
jobsync.JobSyncConfig
queryversionsync.QueryVersionSyncConfig
}
func main() {
@@ -62,15 +65,19 @@ func main() {
Result: res,
Document: doc,
})
qupdate := queryupdate.New(cfg, &queryupdate.Services{
Query: que,
})
services := &queryservice.Services{
Export: exp,
Collector: col,
CollectorUpdate: colupdate,
Query: que,
QueryUpdate: qupdate,
QueryTest: quetest,
Client: cli,
Job: jbb,
QueryTest: quetest,
}
cons := queryservice.NewControllers(cfg.GetValidator(), services)