use of com.checkmarx.flow.dto.report.ScanResultsReport in project cx-flow by checkmarx-ltd.
the class GetResultsAnalyticsTestSteps method verifyReportSCA.
@Then("we should see the expected number of tickets in analytics for SCA")
public void verifyReportSCA() throws CheckmarxException {
ScanResultsReport report = getLatestReport();
assertScanSCASummary(report);
Assert.assertEquals("Scan ID does not match !", Integer.valueOf(SCAN_ID), Integer.valueOf(report.getScanId()));
}
use of com.checkmarx.flow.dto.report.ScanResultsReport in project cx-flow by checkmarx-ltd.
the class GetResultsAnalyticsTestSteps method verifyReportSAST.
@Then("we should see the expected number of tickets in analytics for SAST")
public void verifyReportSAST() throws CheckmarxException {
ScanResultsReport report = getLatestReport();
assertScanSASTSummary(report);
assertScanSASTResults(report);
Assert.assertEquals("Scan ID does not match !", Integer.valueOf(SCAN_ID), Integer.valueOf(report.getScanId()));
}
use of com.checkmarx.flow.dto.report.ScanResultsReport in project cx-flow by checkmarx-ltd.
the class ResultsService method getOSAScan.
ScanResults getOSAScan(ScanRequest request, Integer projectId, String osaScanId, FilterConfiguration filter, ScanResults results) throws CheckmarxException {
if (Boolean.TRUE.equals(cxScannerService.getProperties().getEnableOsa()) && !ScanUtils.empty(osaScanId)) {
log.info("Waiting for OSA Scan results for scan id {}", osaScanId);
List<Filter> filters = Optional.ofNullable(filter.getScaFilters()).map(EngineFilterConfiguration::getSimpleFilters).orElse(null);
results = osaService.waitForOsaScan(osaScanId, projectId, results, filters);
new ScanResultsReport(osaScanId, request, results).log();
}
return results;
}
Aggregations