Search in sources :

Example 6 with ScanReport

use of com.checkmarx.flow.dto.report.ScanReport in project cx-flow by checkmarx-ltd.

the class SCARemoteRepoScanSteps method validateLogger.

@And("SCA scan report entry is created in Json Logger")
public void validateLogger() {
    try {
        ScanReport report = getReportObject();
        assertEquals(AnalyticsReport.SCA, report.getScanInitiator());
        assertEquals(scaResults.getScanId(), report.getScanId());
        assertEquals(OperationStatus.SUCCESS, report.getScanResult().getStatus());
    } catch (CheckmarxException | JsonProcessingException e) {
        fail(e.getMessage());
    }
}
Also used : ScanReport(com.checkmarx.flow.dto.report.ScanReport) CheckmarxException(com.checkmarx.sdk.exception.CheckmarxException) JsonProcessingException(com.fasterxml.jackson.core.JsonProcessingException) And(io.cucumber.java.en.And)

Aggregations

ScanReport (com.checkmarx.flow.dto.report.ScanReport)6 CheckmarxException (com.checkmarx.sdk.exception.CheckmarxException)2 JsonLoggerTestUtils (com.checkmarx.flow.cucumber.common.JsonLoggerTestUtils)1 GitHubRepoUnavailableException (com.checkmarx.flow.exception.GitHubRepoUnavailableException)1 MachinaException (com.checkmarx.flow.exception.MachinaException)1 MachinaRuntimeException (com.checkmarx.flow.exception.MachinaRuntimeException)1 CxScanParams (com.checkmarx.sdk.dto.cx.CxScanParams)1 JsonProcessingException (com.fasterxml.jackson.core.JsonProcessingException)1 JsonNode (com.fasterxml.jackson.databind.JsonNode)1 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 And (io.cucumber.java.en.And)1 IOException (java.io.IOException)1 GitAPIException (org.eclipse.jgit.api.errors.GitAPIException)1