Search in sources :

Example 1 with IastThresholdsSeverityException

use of com.checkmarx.flow.exception.IastThresholdsSeverityException in project cx-flow by checkmarx-ltd.

the class IastCliSteps method runningIastService.

@SneakyThrows
@When("running iast service {}")
public void runningIastService(String scanTag) {
    scanTag = removeQuotes(scanTag);
    try {
        BugTracker.Type bugType = BugTracker.Type.GITHUBCOMMIT;
        String assignee = "test_user";
        BugTracker bt = BugTracker.builder().type(bugType).assignee(assignee).build();
        ScanRequest request = ScanRequest.builder().bugTracker(bt).build();
        iastService.stopScanAndCreateIssue(request, scanTag);
    } catch (IastThresholdsSeverityException e) {
    // that is ok. Just Thresholds Severity
    }
}
Also used : ScanRequest(com.checkmarx.flow.dto.ScanRequest) IastThresholdsSeverityException(com.checkmarx.flow.exception.IastThresholdsSeverityException) BugTracker(com.checkmarx.flow.dto.BugTracker) When(io.cucumber.java.en.When) SneakyThrows(lombok.SneakyThrows)

Aggregations

BugTracker (com.checkmarx.flow.dto.BugTracker)1 ScanRequest (com.checkmarx.flow.dto.ScanRequest)1 IastThresholdsSeverityException (com.checkmarx.flow.exception.IastThresholdsSeverityException)1 When (io.cucumber.java.en.When)1 SneakyThrows (lombok.SneakyThrows)1