Debian Codegraph @

hub1/.tests/bind9-refused/scenario.assert

raw
1 len(results) == 1
2 "104.219.136.31" in results[0].Overflow.GetSources()
3 results[0].Overflow.Sources["104.219.136.31"].IP == "104.219.136.31"
4 results[0].Overflow.Sources["104.219.136.31"].Range == ""
5 results[0].Overflow.Sources["104.219.136.31"].GetScope() == "Ip"
6 results[0].Overflow.Sources["104.219.136.31"].GetValue() == "104.219.136.31"
7 results[0].Overflow.Alert.Events[0].GetMeta("datasource_path") == "bind9-refused.log"
8 results[0].Overflow.Alert.Events[0].GetMeta("datasource_type") == "file"
9 results[0].Overflow.Alert.Events[0].GetMeta("log_type") == "bind9_denied"
10 results[0].Overflow.Alert.Events[0].GetMeta("service") == "bind9"
11 results[0].Overflow.Alert.Events[0].GetMeta("source_ip") == "104.219.136.31"
12 results[0].Overflow.Alert.Events[0].GetMeta("timestamp") == "2022-10-20T05:34:02Z"
13 results[0].Overflow.Alert.Events[1].GetMeta("datasource_path") == "bind9-refused.log"
14 results[0].Overflow.Alert.Events[1].GetMeta("datasource_type") == "file"
15 results[0].Overflow.Alert.Events[1].GetMeta("log_type") == "bind9_denied"
16 results[0].Overflow.Alert.Events[1].GetMeta("service") == "bind9"
17 results[0].Overflow.Alert.Events[1].GetMeta("source_ip") == "104.219.136.31"
18 results[0].Overflow.Alert.Events[1].GetMeta("timestamp") == "2022-10-20T05:34:03Z"
19 results[0].Overflow.Alert.Events[2].GetMeta("datasource_path") == "bind9-refused.log"
20 results[0].Overflow.Alert.Events[2].GetMeta("datasource_type") == "file"
21 results[0].Overflow.Alert.Events[2].GetMeta("log_type") == "bind9_denied"
22 results[0].Overflow.Alert.Events[2].GetMeta("service") == "bind9"
23 results[0].Overflow.Alert.Events[2].GetMeta("source_ip") == "104.219.136.31"
24 results[0].Overflow.Alert.Events[2].GetMeta("timestamp") == "2022-10-20T05:34:04Z"
25 results[0].Overflow.Alert.Events[3].GetMeta("datasource_path") == "bind9-refused.log"
26 results[0].Overflow.Alert.Events[3].GetMeta("datasource_type") == "file"
27 results[0].Overflow.Alert.Events[3].GetMeta("log_type") == "bind9_denied"
28 results[0].Overflow.Alert.Events[3].GetMeta("service") == "bind9"
29 results[0].Overflow.Alert.Events[3].GetMeta("source_ip") == "104.219.136.31"
30 results[0].Overflow.Alert.Events[3].GetMeta("timestamp") == "2022-10-20T05:34:05Z"
31 results[0].Overflow.Alert.Events[4].GetMeta("datasource_path") == "bind9-refused.log"
32 results[0].Overflow.Alert.Events[4].GetMeta("datasource_type") == "file"
33 results[0].Overflow.Alert.Events[4].GetMeta("log_type") == "bind9_denied"
34 results[0].Overflow.Alert.Events[4].GetMeta("service") == "bind9"
35 results[0].Overflow.Alert.Events[4].GetMeta("source_ip") == "104.219.136.31"
36 results[0].Overflow.Alert.Events[4].GetMeta("timestamp") == "2022-10-20T05:34:06Z"
37 results[0].Overflow.Alert.Events[5].GetMeta("datasource_path") == "bind9-refused.log"
38 results[0].Overflow.Alert.Events[5].GetMeta("datasource_type") == "file"
39 results[0].Overflow.Alert.Events[5].GetMeta("log_type") == "bind9_denied"
40 results[0].Overflow.Alert.Events[5].GetMeta("service") == "bind9"
41 results[0].Overflow.Alert.Events[5].GetMeta("source_ip") == "104.219.136.31"
42 results[0].Overflow.Alert.Events[5].GetMeta("timestamp") == "2022-10-20T05:34:07Z"
43 results[0].Overflow.Alert.GetScenario() == "mstilkerich/bind9-refused"
44 results[0].Overflow.Alert.Remediation == true
45 results[0].Overflow.Alert.GetEventsCount() == 6