def test_get_sast_scan_details_by_scan_id(): project_id = get_project_id() scan_api = ScansAPI() scan_id = scan_api.get_last_scan_id_of_a_project(project_id) scan = scan_api.get_sast_scan_details_by_scan_id(scan_id) assert scan is not None
def test_register_scan_report(): project_id = get_project_id() scan_api = ScansAPI() scan_id = scan_api.get_last_scan_id_of_a_project(project_id) scan = scan_api.get_sast_scan_details_by_scan_id(scan_id) scan_id = scan.id report_type = "XML" scan_report = scan_api.register_scan_report(scan_id, report_type) assert scan_report is not None # test_get_report_status_by_id(): report_id = scan_report.report_id report_status = scan_api.get_report_status_by_id(report_id) assert report_status is not None # test_get_report_by_id(): report_content = scan_api.get_report_by_id(report_id) assert report_content is not None