Skip to content

Commit

Permalink
test: adjusted to add detectinfo field
Browse files Browse the repository at this point in the history
  • Loading branch information
hitenkoku committed Jun 15, 2024
1 parent 44df83b commit 6ac6ac2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
11 changes: 11 additions & 0 deletions src/afterfact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand All @@ -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),
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -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),
Expand All @@ -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),
Expand Down Expand Up @@ -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),
Expand All @@ -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),
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -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),
Expand Down Expand Up @@ -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),
Expand Down
8 changes: 6 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 6ac6ac2

Please sign in to comment.