Merged in feature/openapifixes (pull request #106)
OpenAPI Middleware & Fixes * updates
This commit is contained in:
@@ -18,7 +18,6 @@ import (
|
||||
queuemock "queryorchestration/mocks/queue"
|
||||
|
||||
"github.com/aws/aws-sdk-go-v2/service/sqs"
|
||||
"github.com/go-playground/validator/v10"
|
||||
"github.com/google/uuid"
|
||||
"github.com/jackc/pgx/v5"
|
||||
"github.com/jackc/pgx/v5/pgtype"
|
||||
@@ -68,7 +67,7 @@ func TestSetCollector(t *testing.T) {
|
||||
rec := httptest.NewRecorder()
|
||||
ctx := e.NewContext(req, rec)
|
||||
|
||||
cons := queryapi.NewControllers(validator.New(), &queryapi.Services{
|
||||
cons := queryapi.NewControllers(&queryapi.Services{
|
||||
CollectorSet: collectorset.New(cfg, &collectorset.Services{
|
||||
Collector: collector.New(cfg),
|
||||
}),
|
||||
@@ -134,7 +133,7 @@ func TestGetCollectorByclientId(t *testing.T) {
|
||||
ctx := e.NewContext(req, rec)
|
||||
|
||||
svc := collector.New(cfg)
|
||||
cons := queryapi.NewControllers(validator.New(), &queryapi.Services{
|
||||
cons := queryapi.NewControllers(&queryapi.Services{
|
||||
Collector: svc,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user