Skip to content

Commit

Permalink
test(afterfact): fixed test expect #965
Browse files Browse the repository at this point in the history
  • Loading branch information
hitenkoku committed Mar 18, 2023
1 parent d3e71d7 commit 09a2a62
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions src/afterfact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1856,25 +1856,22 @@ mod tests {
println!("message: {detect_infos:?}");
}
let expect =
"Timestamp,Computer,Channel,Level,EventID,MitreAttack,RecordID,RuleTitle,Details,RecordInformation,RuleFile,EvtxFile,Tags\n\""
"\"Timestamp\",\"Computer\",\"Channel\",\"Level\",\"EventID\",\"MitreAttack\",\"RecordID\",\"RuleTitle\",\"Details\",\"RecordInformation\",\"RuleFile\",\"EvtxFile\",\"Tags\"\n\""
.to_string()
+ &expect_tz.with_timezone(&Local).format("%Y-%m-%d %H:%M:%S%.3f %:z").to_string()
+ "\",\""
+ test_computername
+ "\",\""
+ test_channel
+ "\",\""

+ test_level
+ "\",\""

+ "\","
+ test_eventid
+ "\",\""

+ ",\""
+ test_attack
+ "\",\""
+ "\","
+ test_record_id
+ "\",\""
+ ",\""
+ test_title
+ "\",\""
+ output
Expand All @@ -1895,13 +1892,13 @@ mod tests {
+ test_channel
+ "\",\""
+ test_level
+ "\",\""
+ "\","
+ test_eventid
+ "\",\""
+ ",\""
+ test_attack
+ "\",\""
+ "\","
+ test_record_id
+ "\",\""
+ ",\""
+ test_title
+ "\",\""
+ output
Expand Down

0 comments on commit 09a2a62

Please sign in to comment.