You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with (get_unit_tests_scans_path("deepfence_threatmapper") /"MalwareScanReport.xlsx").open("rb") astestfile:
26
-
parser=DeepfenceThreatmapperParser()
27
-
findings=parser.get_findings(testfile, Test())
28
-
self.assertEqual(66, len(findings))
29
-
self.assertEqual(findings[0].title, "spyeye")
30
-
self.assertEqual(findings[0].severity, "High")
31
-
32
-
deftest_parse_file_SecretScanReport(self):
33
-
with (get_unit_tests_scans_path("deepfence_threatmapper") /"SecretScanReport.xlsx").open("rb") astestfile:
34
-
parser=DeepfenceThreatmapperParser()
35
-
findings=parser.get_findings(testfile, Test())
36
-
self.assertEqual(15, len(findings))
37
-
self.assertEqual(findings[0].title, "index-username_and_password_in_uri in /var/lib/host-containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/1/fs/usr/lib64/python2.7/urllib2.py")
38
-
self.assertEqual(findings[0].severity, "High")
39
-
40
-
deftest_parse_file_VulnerabilityScanReport(self):
41
-
with (get_unit_tests_scans_path("deepfence_threatmapper") /"VulnerabilityScanReport.xlsx").open("rb") astestfile:
with (get_unit_tests_scans_path("deepfence_threatmapper") /"secret_report_newformat.xlsx").open("rb") astestfile:
52
+
parser=DeepfenceThreatmapperParser()
53
+
findings=parser.get_findings(testfile, Test())
54
+
self.assertEqual(15, len(findings))
55
+
self.assertEqual(findings[0].title, "index-username_and_password_in_uri in /var/lib/host-containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/1/fs/usr/lib64/python2.7/urllib2.py")
56
+
self.assertEqual(findings[0].severity, "High")
57
+
67
58
deftest_parse_file_vulnerability_report(self):
68
59
with (get_unit_tests_scans_path("deepfence_threatmapper") /"vulnerability_report.xlsx").open("rb") astestfile:
0 commit comments