Debian Codegraph @

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

raw
1 len(results) == 2
2 "192.168.7.15" in results[0].Overflow.GetSources()
3 results[0].Overflow.Sources["192.168.7.15"].IP == "192.168.7.15"
4 results[0].Overflow.Sources["192.168.7.15"].Range == ""
5 results[0].Overflow.Sources["192.168.7.15"].GetScope() == "Ip"
6 results[0].Overflow.Sources["192.168.7.15"].GetValue() == "192.168.7.15"
7 results[0].Overflow.Alert.Events[0].GetMeta("datasource_path") == "zimbra-bf.log"
8 results[0].Overflow.Alert.Events[0].GetMeta("datasource_type") == "file"
9 results[0].Overflow.Alert.Events[0].GetMeta("log_type") == "zimbra_auth_fail"
10 results[0].Overflow.Alert.Events[0].GetMeta("service") == "zimbra"
11 results[0].Overflow.Alert.Events[0].GetMeta("source_ip") == "192.168.7.15"
12 results[0].Overflow.Alert.Events[0].GetMeta("user") == "toto.tata"
13 results[0].Overflow.Alert.Events[1].GetMeta("datasource_path") == "zimbra-bf.log"
14 results[0].Overflow.Alert.Events[1].GetMeta("datasource_type") == "file"
15 results[0].Overflow.Alert.Events[1].GetMeta("log_type") == "zimbra_auth_fail"
16 results[0].Overflow.Alert.Events[1].GetMeta("service") == "zimbra"
17 results[0].Overflow.Alert.Events[1].GetMeta("source_ip") == "192.168.7.15"
18 results[0].Overflow.Alert.Events[1].GetMeta("user") == "toto.titi"
19 results[0].Overflow.Alert.Events[2].GetMeta("datasource_path") == "zimbra-bf.log"
20 results[0].Overflow.Alert.Events[2].GetMeta("datasource_type") == "file"
21 results[0].Overflow.Alert.Events[2].GetMeta("log_type") == "zimbra_auth_fail"
22 results[0].Overflow.Alert.Events[2].GetMeta("service") == "zimbra"
23 results[0].Overflow.Alert.Events[2].GetMeta("source_ip") == "192.168.7.15"
24 results[0].Overflow.Alert.Events[2].GetMeta("user") == "toto.toto"
25 results[0].Overflow.Alert.Events[3].GetMeta("datasource_path") == "zimbra-bf.log"
26 results[0].Overflow.Alert.Events[3].GetMeta("datasource_type") == "file"
27 results[0].Overflow.Alert.Events[3].GetMeta("log_type") == "zimbra_auth_fail"
28 results[0].Overflow.Alert.Events[3].GetMeta("service") == "zimbra"
29 results[0].Overflow.Alert.Events[3].GetMeta("source_ip") == "192.168.7.15"
30 results[0].Overflow.Alert.Events[3].GetMeta("user") == "toto.tete"
31 results[0].Overflow.Alert.Events[4].GetMeta("datasource_path") == "zimbra-bf.log"
32 results[0].Overflow.Alert.Events[4].GetMeta("datasource_type") == "file"
33 results[0].Overflow.Alert.Events[4].GetMeta("log_type") == "zimbra_auth_fail"
34 results[0].Overflow.Alert.Events[4].GetMeta("service") == "zimbra"
35 results[0].Overflow.Alert.Events[4].GetMeta("source_ip") == "192.168.7.15"
36 results[0].Overflow.Alert.Events[4].GetMeta("user") == "toto.tutu"
37 results[0].Overflow.Alert.Events[5].GetMeta("datasource_path") == "zimbra-bf.log"
38 results[0].Overflow.Alert.Events[5].GetMeta("datasource_type") == "file"
39 results[0].Overflow.Alert.Events[5].GetMeta("log_type") == "zimbra_auth_fail"
40 results[0].Overflow.Alert.Events[5].GetMeta("service") == "zimbra"
41 results[0].Overflow.Alert.Events[5].GetMeta("source_ip") == "192.168.7.15"
42 results[0].Overflow.Alert.Events[5].GetMeta("user") == "[email protected]"
43 results[0].Overflow.Alert.GetScenario() == "firewallservices/zimbra-user-enum"
44 results[0].Overflow.Alert.Remediation == true
45 results[0].Overflow.Alert.GetEventsCount() == 6
46 "192.168.7.15" in results[1].Overflow.GetSources()
47 results[1].Overflow.Sources["192.168.7.15"].IP == "192.168.7.15"
48 results[1].Overflow.Sources["192.168.7.15"].Range == ""
49 results[1].Overflow.Sources["192.168.7.15"].GetScope() == "Ip"
50 results[1].Overflow.Sources["192.168.7.15"].GetValue() == "192.168.7.15"
51 results[1].Overflow.Alert.Events[0].GetMeta("datasource_path") == "zimbra-bf.log"
52 results[1].Overflow.Alert.Events[0].GetMeta("datasource_type") == "file"
53 results[1].Overflow.Alert.Events[0].GetMeta("log_type") == "zimbra_auth_fail"
54 results[1].Overflow.Alert.Events[0].GetMeta("service") == "zimbra"
55 results[1].Overflow.Alert.Events[0].GetMeta("source_ip") == "192.168.7.15"
56 results[1].Overflow.Alert.Events[0].GetMeta("user") == "toto.tata"
57 results[1].Overflow.Alert.Events[1].GetMeta("datasource_path") == "zimbra-bf.log"
58 results[1].Overflow.Alert.Events[1].GetMeta("datasource_type") == "file"
59 results[1].Overflow.Alert.Events[1].GetMeta("log_type") == "zimbra_auth_fail"
60 results[1].Overflow.Alert.Events[1].GetMeta("service") == "zimbra"
61 results[1].Overflow.Alert.Events[1].GetMeta("source_ip") == "192.168.7.15"
62 results[1].Overflow.Alert.Events[1].GetMeta("user") == "toto.titi"
63 results[1].Overflow.Alert.Events[2].GetMeta("datasource_path") == "zimbra-bf.log"
64 results[1].Overflow.Alert.Events[2].GetMeta("datasource_type") == "file"
65 results[1].Overflow.Alert.Events[2].GetMeta("log_type") == "zimbra_auth_fail"
66 results[1].Overflow.Alert.Events[2].GetMeta("service") == "zimbra"
67 results[1].Overflow.Alert.Events[2].GetMeta("source_ip") == "192.168.7.15"
68 results[1].Overflow.Alert.Events[2].GetMeta("user") == "toto.toto"
69 results[1].Overflow.Alert.Events[3].GetMeta("datasource_path") == "zimbra-bf.log"
70 results[1].Overflow.Alert.Events[3].GetMeta("datasource_type") == "file"
71 results[1].Overflow.Alert.Events[3].GetMeta("log_type") == "zimbra_auth_fail"
72 results[1].Overflow.Alert.Events[3].GetMeta("service") == "zimbra"
73 results[1].Overflow.Alert.Events[3].GetMeta("source_ip") == "192.168.7.15"
74 results[1].Overflow.Alert.Events[3].GetMeta("user") == "toto.tete"
75 results[1].Overflow.Alert.Events[4].GetMeta("datasource_path") == "zimbra-bf.log"
76 results[1].Overflow.Alert.Events[4].GetMeta("datasource_type") == "file"
77 results[1].Overflow.Alert.Events[4].GetMeta("log_type") == "zimbra_auth_fail"
78 results[1].Overflow.Alert.Events[4].GetMeta("service") == "zimbra"
79 results[1].Overflow.Alert.Events[4].GetMeta("source_ip") == "192.168.7.15"
80 results[1].Overflow.Alert.Events[4].GetMeta("user") == "toto.tutu"
81 results[1].Overflow.Alert.Events[5].GetMeta("datasource_path") == "zimbra-bf.log"
82 results[1].Overflow.Alert.Events[5].GetMeta("datasource_type") == "file"
83 results[1].Overflow.Alert.Events[5].GetMeta("log_type") == "zimbra_auth_fail"
84 results[1].Overflow.Alert.Events[5].GetMeta("service") == "zimbra"
85 results[1].Overflow.Alert.Events[5].GetMeta("source_ip") == "192.168.7.15"
86 results[1].Overflow.Alert.Events[5].GetMeta("user") == "toto.tutu"
87 results[1].Overflow.Alert.GetScenario() == "firewallservices/zimbra-bf"
88 results[1].Overflow.Alert.Remediation == true
89 results[1].Overflow.Alert.GetEventsCount() == 6
90