Merged in feature/openapifixes (pull request #106)
OpenAPI Middleware & Fixes * updates
This commit is contained in:
@@ -8,7 +8,6 @@ import (
|
||||
|
||||
queryapi "queryorchestration/api/queryAPI"
|
||||
|
||||
"github.com/go-playground/validator/v10"
|
||||
"github.com/google/uuid"
|
||||
"github.com/labstack/echo/v4"
|
||||
"github.com/stretchr/testify/assert"
|
||||
@@ -20,7 +19,7 @@ func TestTriggerExport(t *testing.T) {
|
||||
rec := httptest.NewRecorder()
|
||||
ctx := e.NewContext(req, rec)
|
||||
|
||||
cons := queryapi.NewControllers(validator.New(), &queryapi.Services{})
|
||||
cons := queryapi.NewControllers(&queryapi.Services{})
|
||||
|
||||
err := cons.TriggerExport(ctx, "clientid")
|
||||
assert.NoError(t, err)
|
||||
@@ -34,7 +33,7 @@ func TestExportState(t *testing.T) {
|
||||
rec := httptest.NewRecorder()
|
||||
ctx := e.NewContext(req, rec)
|
||||
|
||||
cons := queryapi.NewControllers(validator.New(), &queryapi.Services{})
|
||||
cons := queryapi.NewControllers(&queryapi.Services{})
|
||||
|
||||
id := uuid.New()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user