Skip to content

Commit

Permalink
test: changes to existing tests due to the addition of the multiline …
Browse files Browse the repository at this point in the history
…option #972
  • Loading branch information
hitenkoku committed Mar 21, 2023
1 parent bb8bb24 commit 7381b0e
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/afterfact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1685,6 +1685,7 @@ mod tests {
},
geo_ip: None,
output: Some(Path::new("./test_emit_csv.csv").to_path_buf()),
multiline: false,
});
let dummy_config = Some(Config {
action: Some(dummy_action),
Expand Down
3 changes: 3 additions & 0 deletions src/detections/detection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,7 @@ mod tests {
},
geo_ip: None,
output: None,
multiline: false,
})),
debug: false,
}))
Expand Down Expand Up @@ -1379,6 +1380,7 @@ mod tests {
},
geo_ip: Some(Path::new("test_files/mmdb").to_path_buf()),
output: Some(Path::new("./test_emit_csv.csv").to_path_buf()),
multiline: false,
});
let dummy_config = Some(Config {
action: Some(dummy_action),
Expand Down Expand Up @@ -1496,6 +1498,7 @@ mod tests {
},
geo_ip: Some(Path::new("test_files/mmdb").to_path_buf()),
output: Some(Path::new("./test_emit_csv.csv").to_path_buf()),
multiline: false,
});
let dummy_config = Some(Config {
action: Some(dummy_action),
Expand Down
1 change: 1 addition & 0 deletions src/detections/rule/condition_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,7 @@ mod tests {
},
geo_ip: None,
output: None,
multiline: false,
})),
debug: false,
}))
Expand Down
1 change: 1 addition & 0 deletions src/detections/rule/count.rs
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,7 @@ mod tests {
},
geo_ip: None,
output: None,
multiline: false,
})),
debug: false,
}))
Expand Down
1 change: 1 addition & 0 deletions src/detections/rule/matchers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,7 @@ mod tests {
},
geo_ip: None,
output: None,
multiline: false,
})),
debug: false,
}));
Expand Down
1 change: 1 addition & 0 deletions src/detections/rule/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ mod tests {
},
geo_ip: None,
output: None,
multiline: false,
})),
debug: false,
}))
Expand Down
1 change: 1 addition & 0 deletions src/detections/rule/selectionnodes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ mod tests {
},
geo_ip: None,
output: None,
multiline: false,
})),
debug: false,
}))
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1498,6 +1498,7 @@ mod tests {
},
geo_ip: None,
output: None,
multiline: false,
})),
debug: false,
}))
Expand Down
2 changes: 2 additions & 0 deletions src/options/htmlreport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ mod tests {
},
geo_ip: None,
output: None,
multiline: false,
});
let csv_html_flag_enable = create_dummy_stored_static(Some(enable_csv_action));
assert!(htmlreport::check_html_flag(&csv_html_flag_enable.config));
Expand Down Expand Up @@ -296,6 +297,7 @@ mod tests {
},
geo_ip: None,
output: None,
multiline: false,
});
let csv_html_flag_disable = create_dummy_stored_static(Some(disable_csv_action));
assert!(!htmlreport::check_html_flag(&csv_html_flag_disable.config));
Expand Down
4 changes: 4 additions & 0 deletions src/options/profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ mod tests {
},
geo_ip: None,
output: None,
multiline: false,
}));
assert_eq!(
Nested::<Vec<String>>::new(),
Expand Down Expand Up @@ -551,6 +552,7 @@ mod tests {
},
geo_ip: None,
output: None,
multiline: false,
}));
*GEOIP_DB_PARSER.write().unwrap() = None;
assert_eq!(
Expand Down Expand Up @@ -609,6 +611,7 @@ mod tests {
},
geo_ip: None,
output: None,
multiline: false,
}));

let expect: Vec<(CompactString, Profile)> = vec![
Expand Down Expand Up @@ -697,6 +700,7 @@ mod tests {
},
geo_ip: None,
output: None,
multiline: false,
}));
//両方のファイルが存在しない場合
assert_eq!(
Expand Down
1 change: 1 addition & 0 deletions src/yaml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ mod tests {
},
geo_ip: None,
output: None,
multiline: false,
})),
debug: false,
}))
Expand Down

0 comments on commit 7381b0e

Please sign in to comment.