fix tests

This commit is contained in:
alteredCoder 2022-04-19 12:41:13 +02:00
parent 8cab31ba2e
commit 82ebc1a04b

View file

@ -156,8 +156,10 @@ func TestLoadCrowdsec(t *testing.T) {
HubIndexFile: hubIndexFileFullPath,
DataDir: dataFullPath,
HubDir: hubFullPath,
ContextToSend: make(map[string][]string, 0),
ConsoleContextPath: "/etc/crowdsec/console/context.yaml",
ContextToSend: map[string][]string{
"source_ip": {"evt.Parsed.source_ip"},
},
ConsoleContextPath: "./tests/context.yaml",
SimulationConfig: &SimulationConfig{
Simulation: &falseBoolPtr,
},