From 7691fbef6278db4b28c6febf3210f162e0354309 Mon Sep 17 00:00:00 2001 From: alteredCoder Date: Mon, 25 Oct 2021 12:39:01 +0200 Subject: [PATCH] fix api server tests --- pkg/apiserver/apiserver_test.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkg/apiserver/apiserver_test.go b/pkg/apiserver/apiserver_test.go index 8881b49ed..20597934e 100644 --- a/pkg/apiserver/apiserver_test.go +++ b/pkg/apiserver/apiserver_test.go @@ -49,6 +49,13 @@ func LoadTestConfig() csconfig.Config { ListenURI: "http://127.0.0.1:8080", DbConfig: &dbconfig, ProfilesPath: "./tests/profiles.yaml", + ConsoleConfig: &csconfig.ConsoleConfig{ + ShareManualDecisions: new(bool), + ShareTaintedScenarios: new(bool), + ShareCustomScenarios: new(bool), + ShareDecisions: new(bool), + ShareSimulatedDecisions: new(bool), + }, } apiConfig := csconfig.APICfg{ Server: &apiServerConfig, @@ -76,6 +83,13 @@ func LoadTestConfigForwardedFor() csconfig.Config { DbConfig: &dbconfig, ProfilesPath: "./tests/profiles.yaml", UseForwardedForHeaders: true, + ConsoleConfig: &csconfig.ConsoleConfig{ + ShareManualDecisions: new(bool), + ShareTaintedScenarios: new(bool), + ShareCustomScenarios: new(bool), + ShareDecisions: new(bool), + ShareSimulatedDecisions: new(bool), + }, } apiConfig := csconfig.APICfg{ Server: &apiServerConfig,