Debian Codegraph @

hub1/.tests/jellyfin-logs/parser.assert

raw
1 len(results) == 4
2 len(results["s00-raw"]["crowdsecurity/non-syslog"]) == 2
3 results["s00-raw"]["crowdsecurity/non-syslog"][0].Success == true
4 results["s00-raw"]["crowdsecurity/non-syslog"][0].Evt.Parsed["message"] == "[2023-02-12 12:16:05.729 +01:00] [INF] [79] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for \"testuser\" has been denied (IP: \"127.0.0.1\")."
5 results["s00-raw"]["crowdsecurity/non-syslog"][0].Evt.Parsed["program"] == "jellyfin"
6 results["s00-raw"]["crowdsecurity/non-syslog"][0].Evt.Meta["datasource_path"] == "jellyfin-logs.log"
7 results["s00-raw"]["crowdsecurity/non-syslog"][0].Evt.Meta["datasource_type"] == "file"
8 results["s00-raw"]["crowdsecurity/non-syslog"][1].Success == true
9 results["s00-raw"]["crowdsecurity/non-syslog"][1].Evt.Parsed["message"] == "[2023-02-13 08:37:50.708 +01:00] [INF] [115] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for \"testuser\" has succeeded."
10 results["s00-raw"]["crowdsecurity/non-syslog"][1].Evt.Parsed["program"] == "jellyfin"
11 results["s00-raw"]["crowdsecurity/non-syslog"][1].Evt.Meta["datasource_path"] == "jellyfin-logs.log"
12 results["s00-raw"]["crowdsecurity/non-syslog"][1].Evt.Meta["datasource_type"] == "file"
13 len(results["s00-raw"]["crowdsecurity/syslog-logs"]) == 2
14 results["s00-raw"]["crowdsecurity/syslog-logs"][0].Success == false
15 results["s00-raw"]["crowdsecurity/syslog-logs"][1].Success == false
16 len(results["s01-parse"]["LePresidente/jellyfin-logs"]) == 2
17 results["s01-parse"]["LePresidente/jellyfin-logs"][0].Success == true
18 results["s01-parse"]["LePresidente/jellyfin-logs"][0].Evt.Parsed["message"] == "[2023-02-12 12:16:05.729 +01:00] [INF] [79] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for \"testuser\" has been denied (IP: \"127.0.0.1\")."
19 results["s01-parse"]["LePresidente/jellyfin-logs"][0].Evt.Parsed["program"] == "jellyfin"
20 results["s01-parse"]["LePresidente/jellyfin-logs"][0].Evt.Parsed["source_ip"] == "127.0.0.1"
21 results["s01-parse"]["LePresidente/jellyfin-logs"][0].Evt.Parsed["timestamp"] == "2023-02-12 12:16:05.729"
22 results["s01-parse"]["LePresidente/jellyfin-logs"][0].Evt.Parsed["username"] == "testuser"
23 results["s01-parse"]["LePresidente/jellyfin-logs"][0].Evt.Meta["log_type"] == "jellyfin_failed_auth"
24 results["s01-parse"]["LePresidente/jellyfin-logs"][0].Evt.Meta["service"] == "jellyfin"
25 results["s01-parse"]["LePresidente/jellyfin-logs"][0].Evt.Meta["source_ip"] == "127.0.0.1"
26 results["s01-parse"]["LePresidente/jellyfin-logs"][0].Evt.Meta["user"] == "testuser"
27 results["s01-parse"]["LePresidente/jellyfin-logs"][0].Evt.Meta["datasource_path"] == "jellyfin-logs.log"
28 results["s01-parse"]["LePresidente/jellyfin-logs"][0].Evt.Meta["datasource_type"] == "file"
29 results["s01-parse"]["LePresidente/jellyfin-logs"][1].Success == false
30 len(results["s02-enrich"]["crowdsecurity/dateparse-enrich"]) == 1
31 results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Success == true
32 results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["message"] == "[2023-02-12 12:16:05.729 +01:00] [INF] [79] Jellyfin.Server.Implementations.Users.UserManager: Authentication request for \"testuser\" has been denied (IP: \"127.0.0.1\")."
33 results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["program"] == "jellyfin"
34 results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["source_ip"] == "127.0.0.1"
35 results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["timestamp"] == "2023-02-12 12:16:05.729"
36 results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["username"] == "testuser"
37 results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["datasource_path"] == "jellyfin-logs.log"
38 results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["datasource_type"] == "file"
39 results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["log_type"] == "jellyfin_failed_auth"
40 results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["service"] == "jellyfin"
41 results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["source_ip"] == "127.0.0.1"
42 results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["timestamp"] == "2023-02-12T12:16:05.729Z"
43 results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["user"] == "testuser"
44 results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Enriched["MarshaledTime"] == "2023-02-12T12:16:05.729Z"
45 len(results["success"][""]) == 0