From 4f42e21529956843bed24dace3976422d485862b Mon Sep 17 00:00:00 2001 From: ichiichi11 Date: Fri, 26 Feb 2021 20:44:55 +0900 Subject: [PATCH] =?UTF-8?q?testcase=20=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/afterfact.rs | 6 ++---- src/detections/print.rs | 18 ++++++------------ 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/src/afterfact.rs b/src/afterfact.rs index ddfd183a..51c49bb3 100644 --- a/src/afterfact.rs +++ b/src/afterfact.rs @@ -85,10 +85,8 @@ fn test_emit_csv() { "CommandLine": "hoge" }, "System": { - "TimeCreated": { - "#attributes":{ - "SystemTime": "1996-02-27T01:05:01Z" - } + "TimeCreated_attributes": { + "SystemTime": "1996-02-27T01:05:01Z" } } } diff --git a/src/detections/print.rs b/src/detections/print.rs index 211b039a..0f570e30 100644 --- a/src/detections/print.rs +++ b/src/detections/print.rs @@ -156,10 +156,8 @@ mod tests { "CommandLine": "hoge" }, "System": { - "TimeCreated": { - "#attributes":{ - "SystemTime": "1996-02-27T01:05:01Z" - } + "TimeCreated_attributes": { + "SystemTime": "1996-02-27T01:05:01Z" } } } @@ -179,10 +177,8 @@ mod tests { "CommandLine": "hoge" }, "System": { - "TimeCreated": { - "#attributes":{ - "SystemTime": "1996-02-27T01:05:01Z" - } + "TimeCreated_attributes": { + "SystemTime": "1996-02-27T01:05:01Z" } } } @@ -202,10 +198,8 @@ mod tests { "CommandLine": "hoge" }, "System": { - "TimeCreated": { - "#attributes":{ - "SystemTime": "2000-01-21T09:06:01Z" - } + "TimeCreated_attributes": { + "SystemTime": "2000-01-21T09:06:01Z" } } }