Search in sources :

Example 1 with ScanResultsReport

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()));
}
Also used : ScanResultsReport(com.checkmarx.flow.dto.report.ScanResultsReport) Then(io.cucumber.java.en.Then)

Example 2 with ScanResultsReport

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()));
}
Also used : ScanResultsReport(com.checkmarx.flow.dto.report.ScanResultsReport) Then(io.cucumber.java.en.Then)

Example 3 with ScanResultsReport

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;
}
Also used : ScanResultsReport(com.checkmarx.flow.dto.report.ScanResultsReport) Filter(com.checkmarx.sdk.dto.sast.Filter)

Aggregations

ScanResultsReport (com.checkmarx.flow.dto.report.ScanResultsReport)3 Then (io.cucumber.java.en.Then)2 Filter (com.checkmarx.sdk.dto.sast.Filter)1