diff --git a/src/afterfact.rs b/src/afterfact.rs index 9fbe2611f..7b7a9bc42 100644 --- a/src/afterfact.rs +++ b/src/afterfact.rs @@ -2431,6 +2431,7 @@ mod tests { DetectInfo { detected_time: expect_time, rulepath: CompactString::from(test_rulepath), + authors: CompactString::default(), ruleid: test_rule_id.into(), ruletitle: CompactString::from(test_title), level: CompactString::from(test_level), @@ -2455,6 +2456,7 @@ mod tests { DetectInfo { detected_time: expect_time, rulepath: CompactString::from(test_rulepath), + authors: CompactString::default(), ruleid: test_rule_id.into(), ruletitle: CompactString::from(test_title), level: CompactString::from(test_level), @@ -2778,6 +2780,7 @@ mod tests { DetectInfo { detected_time: expect_time, rulepath: CompactString::from(test_rulepath), + authors: CompactString::default(), ruleid: test_rule_id.into(), ruletitle: CompactString::from(test_title), level: CompactString::from(test_level), @@ -2811,6 +2814,7 @@ mod tests { ext_field: output_profile.to_owned(), is_condition: false, details_convert_map: HashMap::default(), + authors: CompactString::default(), }, &profile_converter, (false, false), @@ -3105,6 +3109,7 @@ mod tests { DetectInfo { detected_time: expect_time, rulepath: CompactString::from(test_rulepath), + authors: CompactString::default(), ruleid: test_rule_id.into(), ruletitle: CompactString::from(test_title), level: CompactString::from(test_level), @@ -3129,6 +3134,7 @@ mod tests { DetectInfo { detected_time: expect_time, rulepath: CompactString::from(test_rulepath), + authors: CompactString::default(), ruleid: test_rule_id.into(), ruletitle: CompactString::from(test_title), level: CompactString::from(test_level), @@ -3442,6 +3448,7 @@ mod tests { DetectInfo { detected_time: expect_time, rulepath: CompactString::from(test_rulepath), + authors: CompactString::default(), ruleid: test_rule_id.into(), ruletitle: CompactString::from(test_title), level: CompactString::from(test_level), @@ -3466,6 +3473,7 @@ mod tests { DetectInfo { detected_time: expect_time, rulepath: CompactString::from(test_rulepath), + authors: CompactString::default(), ruleid: test_rule_id.into(), ruletitle: CompactString::from(test_title), level: CompactString::from(test_level), @@ -3851,6 +3859,7 @@ mod tests { DetectInfo { detected_time: expect_time, rulepath: CompactString::from(test_rulepath), + authors: CompactString::default(), ruleid: test_rule_id.into(), ruletitle: CompactString::from(test_title), level: CompactString::from(test_level), @@ -4205,6 +4214,7 @@ mod tests { DetectInfo { detected_time: expect_time, rulepath: CompactString::from(test_rulepath), + authors: CompactString::default(), ruleid: test_rule_id.into(), ruletitle: CompactString::from(test_title), level: CompactString::from(test_level), @@ -4485,6 +4495,7 @@ mod tests { DetectInfo { detected_time: expect_time, rulepath: CompactString::from(test_rulepath), + authors: CompactString::default(), ruleid: test_rule_id.into(), ruletitle: CompactString::from(test_title), level: CompactString::from(test_level), diff --git a/src/main.rs b/src/main.rs index 52d727eb7..3ba9ff4ee 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2567,7 +2567,9 @@ mod tests { us_time: false, utc: false, visualize_timeline: false, - rules: Some(Path::new("./test_files/rules/yaml/test_json_detect.yml").to_path_buf()), + rules: Some( + Path::new("./test_files/rules/yaml/test_json_detect.yml").to_path_buf(), + ), html_report: None, no_summary: true, common_options: CommonOptions { @@ -2742,7 +2744,9 @@ mod tests { us_time: false, utc: false, visualize_timeline: false, - rules: Some(Path::new("./test_files/rules/yaml/test_json_detect.yml").to_path_buf()), + rules: Some( + Path::new("./test_files/rules/yaml/test_json_detect.yml").to_path_buf(), + ), html_report: None, no_summary: true, common_options: CommonOptions {