Debian Codegraph @

hub1/.tests/gotify-bf/scenario.assert

raw
1 len(results) == 1
2 "10.1.2.3" in results[0].Overflow.GetSources()
3 results[0].Overflow.Sources["10.1.2.3"].IP == "10.1.2.3"
4 results[0].Overflow.Sources["10.1.2.3"].Range == ""
5 results[0].Overflow.Sources["10.1.2.3"].GetScope() == "Ip"
6 results[0].Overflow.Sources["10.1.2.3"].GetValue() == "10.1.2.3"
7 results[0].Overflow.Alert.Events[0].GetMeta("datasource_path") == "gotify-logs.log"
8 results[0].Overflow.Alert.Events[0].GetMeta("datasource_type") == "file"
9 results[0].Overflow.Alert.Events[0].GetMeta("log_type") == "gotify_failed_auth"
10 results[0].Overflow.Alert.Events[0].GetMeta("source_ip") == "10.1.2.3"
11 results[0].Overflow.Alert.Events[0].GetMeta("timestamp") == "2022-02-07T10:52:13Z"
12 results[0].Overflow.Alert.Events[1].GetMeta("datasource_path") == "gotify-logs.log"
13 results[0].Overflow.Alert.Events[1].GetMeta("datasource_type") == "file"
14 results[0].Overflow.Alert.Events[1].GetMeta("log_type") == "gotify_failed_auth"
15 results[0].Overflow.Alert.Events[1].GetMeta("source_ip") == "10.1.2.3"
16 results[0].Overflow.Alert.Events[1].GetMeta("timestamp") == "2022-02-07T10:52:13Z"
17 results[0].Overflow.Alert.Events[2].GetMeta("datasource_path") == "gotify-logs.log"
18 results[0].Overflow.Alert.Events[2].GetMeta("datasource_type") == "file"
19 results[0].Overflow.Alert.Events[2].GetMeta("log_type") == "gotify_failed_auth"
20 results[0].Overflow.Alert.Events[2].GetMeta("source_ip") == "10.1.2.3"
21 results[0].Overflow.Alert.Events[2].GetMeta("timestamp") == "2022-02-07T10:52:13Z"
22 results[0].Overflow.Alert.Events[3].GetMeta("datasource_path") == "gotify-logs.log"
23 results[0].Overflow.Alert.Events[3].GetMeta("datasource_type") == "file"
24 results[0].Overflow.Alert.Events[3].GetMeta("log_type") == "gotify_failed_auth"
25 results[0].Overflow.Alert.Events[3].GetMeta("source_ip") == "10.1.2.3"
26 results[0].Overflow.Alert.Events[3].GetMeta("timestamp") == "2022-02-07T10:52:13Z"
27 results[0].Overflow.Alert.Events[4].GetMeta("datasource_path") == "gotify-logs.log"
28 results[0].Overflow.Alert.Events[4].GetMeta("datasource_type") == "file"
29 results[0].Overflow.Alert.Events[4].GetMeta("log_type") == "gotify_failed_auth"
30 results[0].Overflow.Alert.Events[4].GetMeta("source_ip") == "10.1.2.3"
31 results[0].Overflow.Alert.Events[4].GetMeta("timestamp") == "2022-02-07T10:52:13Z"
32 results[0].Overflow.Alert.GetScenario() == "baudneo/gotify-bf"
33 results[0].Overflow.Alert.Remediation == true
34 results[0].Overflow.Alert.GetEventsCount() == 5