From 82ebc1a04b89a2cb693c8eaea9abc606b536f841 Mon Sep 17 00:00:00 2001 From: alteredCoder Date: Tue, 19 Apr 2022 12:41:13 +0200 Subject: [PATCH] fix tests --- pkg/csconfig/crowdsec_service_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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, },