Improve evidence classification and compact CLI reporting
This commit is contained in:
1 parent
9dc7289652
commit
dda4f8563f
28 files changed
+945
-87
No files matched your search
@@ -59,6 +59,13 @@ class ModelTests(unittest.TestCase):
|
||||
collection={"rpcdump": "success"}))
|
||||
self.assertEqual(host.checks["check"], "suspected")
|
||||
self.assertEqual(host.collection["rpcdump"], "success")
|
||||
self.assertEqual(host.conflicting_checks(), {"check"})
|
||||
|
||||
def test_capability_conflict_is_retained_in_both_merge_orders(self):
|
||||
for first, second in (("exposed", "not-exposed"), ("not-exposed", "exposed")):
|
||||
host = HostEvidence("192.0.2.1", checks={"smbghost": first})
|
||||
host.merge(HostEvidence("192.0.2.1", checks={"smbghost": second}))
|
||||
self.assertEqual(host.conflicting_checks(), {"smbghost"})
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in new issue
Block a user