def test_create_new_scan(): project_id = get_project_id() scan_api = ScansAPI() scan = scan_api.create_new_scan(project_id, is_incremental=False, is_public=True, force_scan=True, comment="scan from REST API") assert scan is not None
def test_update_queued_scan_status_by_scan_id(): project_id = get_project_id() scan_api = ScansAPI() scan = scan_api.create_new_scan(project_id, is_incremental=False, is_public=True, force_scan=True, comment="scan from REST API") time.sleep(5) result = scan_api.update_queued_scan_status_by_scan_id( scan_id=scan.id, status_id=1, status_value="Canceled") assert result is True