Skip to content

Commit

Permalink
WIP: Updated Tests to Include License Checks
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyogburn committed Feb 12, 2024
1 parent 64143e7 commit 1f9d470
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions server/modules/elastalert/elastalert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 3 additions & 1 deletion server/modules/suricata/suricata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -323,6 +323,7 @@ func TestParse(t *testing.T) {
Engine: model.EngineNameSuricata,
Language: model.SigLangSuricata,
Ruleset: ruleset,
License: "Unknown",
},
{
PublicID: "20000",
Expand All @@ -333,6 +334,7 @@ func TestParse(t *testing.T) {
Engine: model.EngineNameSuricata,
Language: model.SigLangSuricata,
Ruleset: ruleset,
License: "Unknown",
},
},
},
Expand Down

0 comments on commit 1f9d470

Please sign in to comment.