From 1f9d4702c4d95d8303db658c1be3c89fba8402bc Mon Sep 17 00:00:00 2001 From: Corey Ogburn Date: Mon, 12 Feb 2024 14:20:55 -0700 Subject: [PATCH] WIP: Updated Tests to Include License Checks --- server/modules/elastalert/elastalert_test.go | 1 + server/modules/suricata/suricata_test.go | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/server/modules/elastalert/elastalert_test.go b/server/modules/elastalert/elastalert_test.go index a3ab7417..072b583f 100644 --- a/server/modules/elastalert/elastalert_test.go +++ b/server/modules/elastalert/elastalert_test.go @@ -351,6 +351,7 @@ level: high Engine: model.EngineNameElastAlert, Language: model.SigLangSigma, Ruleset: util.Ptr("all_rules"), + License: model.LicenseDRL, } dets, errMap := engine.parseRules(pkgZips) diff --git a/server/modules/suricata/suricata_test.go b/server/modules/suricata/suricata_test.go index dbb7fe83..600f7b3d 100644 --- a/server/modules/suricata/suricata_test.go +++ b/server/modules/suricata/suricata_test.go @@ -305,7 +305,7 @@ func TestParse(t *testing.T) { ExpectedError *string }{ { - Name: "Sunny Day Path w/ Edge Cases", + Name: "Sunny Day Path with Edge Cases", Lines: []string{ "# Comment", SimpleRule, @@ -323,6 +323,7 @@ func TestParse(t *testing.T) { Engine: model.EngineNameSuricata, Language: model.SigLangSuricata, Ruleset: ruleset, + License: "Unknown", }, { PublicID: "20000", @@ -333,6 +334,7 @@ func TestParse(t *testing.T) { Engine: model.EngineNameSuricata, Language: model.SigLangSuricata, Ruleset: ruleset, + License: "Unknown", }, }, },