Beispiel #1
0
 def test_vtscan_exe(self, mock_get=None, mock_post=None):
     additional_params = {"wait_for_scan_anyway": True, "max_tries": 1}
     report = vt2_scan.run(
         "VT_v2_Scan",
         self.job_id,
         self.filepath,
         self.filename,
         self.md5,
         additional_params,
     )
     self.assertEqual(report.get("success", False), True)
Beispiel #2
0
 def test_vtscan_exe(self, mock_get=None, mock_post=None):
     additional_params = {'wait_for_scan_anyway': True, 'max_tries': 1}
     report = vt2_scan.run("VT_v2_Scan", self.job_id, self.filepath,
                           self.filename, self.md5, additional_params)
     print(report)
     self.assertEqual(report.get('success', False), True)
Beispiel #3
0
def vt2scan_run(analyzer_name, job_id, filepath, filename, md5,
                additional_config_params):
    vt2_scan.run(analyzer_name, job_id, filepath, filename, md5,
                 additional_config_params)
Beispiel #4
0
 def test_vtscan_exe(self):
     additional_params = {'wait_for_scan_anyway': True}
     report = vt2_scan.run("VT_v2_Scan", self.job_id, self.filepath,
                           self.filename, self.md5, additional_params)
     self.assertEqual(report.get('success', False), True)