fix tests
This commit is contained in:
parent
8cab31ba2e
commit
82ebc1a04b
|
@ -156,8 +156,10 @@ func TestLoadCrowdsec(t *testing.T) {
|
||||||
HubIndexFile: hubIndexFileFullPath,
|
HubIndexFile: hubIndexFileFullPath,
|
||||||
DataDir: dataFullPath,
|
DataDir: dataFullPath,
|
||||||
HubDir: hubFullPath,
|
HubDir: hubFullPath,
|
||||||
ContextToSend: make(map[string][]string, 0),
|
ContextToSend: map[string][]string{
|
||||||
ConsoleContextPath: "/etc/crowdsec/console/context.yaml",
|
"source_ip": {"evt.Parsed.source_ip"},
|
||||||
|
},
|
||||||
|
ConsoleContextPath: "./tests/context.yaml",
|
||||||
SimulationConfig: &SimulationConfig{
|
SimulationConfig: &SimulationConfig{
|
||||||
Simulation: &falseBoolPtr,
|
Simulation: &falseBoolPtr,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue