fix api server tests
This commit is contained in:
parent
774a8a681a
commit
7691fbef62
|
@ -49,6 +49,13 @@ func LoadTestConfig() csconfig.Config {
|
||||||
ListenURI: "http://127.0.0.1:8080",
|
ListenURI: "http://127.0.0.1:8080",
|
||||||
DbConfig: &dbconfig,
|
DbConfig: &dbconfig,
|
||||||
ProfilesPath: "./tests/profiles.yaml",
|
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{
|
apiConfig := csconfig.APICfg{
|
||||||
Server: &apiServerConfig,
|
Server: &apiServerConfig,
|
||||||
|
@ -76,6 +83,13 @@ func LoadTestConfigForwardedFor() csconfig.Config {
|
||||||
DbConfig: &dbconfig,
|
DbConfig: &dbconfig,
|
||||||
ProfilesPath: "./tests/profiles.yaml",
|
ProfilesPath: "./tests/profiles.yaml",
|
||||||
UseForwardedForHeaders: true,
|
UseForwardedForHeaders: true,
|
||||||
|
ConsoleConfig: &csconfig.ConsoleConfig{
|
||||||
|
ShareManualDecisions: new(bool),
|
||||||
|
ShareTaintedScenarios: new(bool),
|
||||||
|
ShareCustomScenarios: new(bool),
|
||||||
|
ShareDecisions: new(bool),
|
||||||
|
ShareSimulatedDecisions: new(bool),
|
||||||
|
},
|
||||||
}
|
}
|
||||||
apiConfig := csconfig.APICfg{
|
apiConfig := csconfig.APICfg{
|
||||||
Server: &apiServerConfig,
|
Server: &apiServerConfig,
|
||||||
|
|
Loading…
Reference in a new issue