diff --git a/pkg/csconfig/crowdsec_service_test.go b/pkg/csconfig/crowdsec_service_test.go index 4d1fd058b..28c9a4124 100644 --- a/pkg/csconfig/crowdsec_service_test.go +++ b/pkg/csconfig/crowdsec_service_test.go @@ -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, },