From 07a7feb200c395aa7d8c8842fe4f40a73da65aa6 Mon Sep 17 00:00:00 2001 From: Peter Grlica Date: Thu, 26 Jan 2023 12:31:36 +0100 Subject: [PATCH] Fixed apigw integration test --- server/tests/apigw/main_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server/tests/apigw/main_test.go b/server/tests/apigw/main_test.go index 387fa4583..c2b1aaecf 100644 --- a/server/tests/apigw/main_test.go +++ b/server/tests/apigw/main_test.go @@ -8,6 +8,7 @@ import ( "path" "testing" + "github.com/cortezaproject/corteza/server/pkg/apigw/types" "github.com/cortezaproject/corteza/server/pkg/dal" "github.com/cortezaproject/corteza/server/store/adapters/rdbms/drivers/sqlite" @@ -28,7 +29,6 @@ import ( "github.com/cortezaproject/corteza/server/pkg/label" ltype "github.com/cortezaproject/corteza/server/pkg/label/types" "github.com/cortezaproject/corteza/server/pkg/logger" - "github.com/cortezaproject/corteza/server/pkg/options" "github.com/cortezaproject/corteza/server/store" "github.com/cortezaproject/corteza/server/system/rest" "github.com/cortezaproject/corteza/server/system/service" @@ -90,7 +90,10 @@ func InitTestApp() { r.Group(rest.MountRoutes()) // API gw routes - apigw.Setup(*options.Apigw(), service.DefaultLogger, service.DefaultStore) + apigw.Setup(types.Config{Enabled: true, Profiler: struct { + Enabled bool + Global bool + }{Enabled: true, Global: true}}, service.DefaultLogger, service.DefaultStore) err := apigw.Service().Reload(ctx) if err != nil { panic(err)