diff --git a/pkg/acl/user_test.go b/pkg/acl/user_test.go index c18901ac..4acef6ef 100644 --- a/pkg/acl/user_test.go +++ b/pkg/acl/user_test.go @@ -26,6 +26,7 @@ func loadConfig() *raiden.Config { SupabaseApiBasePath: "/v1", SupabaseApiUrl: "http://supabase.cloud.com", SupabasePublicUrl: "http://supabase.cloud.com", + Mode: raiden.BffMode, } } diff --git a/pkg/controllers/state_controller_test.go b/pkg/controllers/state_controller_test.go index cadf054f..2649bbd8 100644 --- a/pkg/controllers/state_controller_test.go +++ b/pkg/controllers/state_controller_test.go @@ -23,6 +23,7 @@ func loadConfig() *raiden.Config { SupabaseApiBasePath: "/v1", SupabaseApiUrl: "http://supabase.cloud.com", SupabasePublicUrl: "http://supabase.cloud.com", + Mode: raiden.BffMode, } } @@ -34,7 +35,6 @@ func TestStateController_Post(t *testing.T) { } config := loadConfig() config.AllowedTables = "*" - config.Mode = raiden.BffMode resource.ImportLogger = logger.HcLog().Named("import") mockContext := &mock.MockContext{ diff --git a/pkg/generator/apply_test.go b/pkg/generator/apply_test.go index 2c3fc8ad..412051d7 100644 --- a/pkg/generator/apply_test.go +++ b/pkg/generator/apply_test.go @@ -17,6 +17,7 @@ func loadConfig() *raiden.Config { SupabaseApiBasePath: "/v1", SupabaseApiUrl: "http://supabase.cloud.com", SupabasePublicUrl: "http://supabase.cloud.com", + Mode: raiden.BffMode, } } diff --git a/router_test.go b/router_test.go index f07a55eb..3f15eeee 100644 --- a/router_test.go +++ b/router_test.go @@ -68,6 +68,7 @@ func loadConfig() *raiden.Config { CorsAllowedOrigins: "*", CorsAllowedMethods: "GET, POST, PUT, DELETE, OPTIONS", CorsAllowedHeaders: "X-Requested-With, Content-Type, Authorization", + Mode: raiden.BffMode, } }