pass test
This commit is contained in:
@@ -266,6 +266,9 @@ impl Detection {
|
||||
fn test_parse_rule_files() {
|
||||
let level = "INFO";
|
||||
let opt_rule_path = Some("./test_files/rules/level_yaml");
|
||||
let cole = Detection::parse_rule_files(level.to_owned(), opt_rule_path);
|
||||
let fill_ids = RuleFill {
|
||||
no_use_rule: HashMap::from([("".to_string(), true)]),
|
||||
};
|
||||
let cole = Detection::parse_rule_files(level.to_owned(), opt_rule_path, fill_ids);
|
||||
assert_eq!(5, cole.len());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user