Search in sources :

Example 26 with FilterConfiguration

use of com.checkmarx.sdk.dto.filtering.FilterConfiguration in project cx-flow by checkmarx-ltd.

the class JiraAnalyticsCommandLineCommonSteps method getBasicScanRequest.

ScanRequest getBasicScanRequest() {
    List<Filter> simpleFilters = Collections.singletonList(this.filter);
    FilterConfiguration filterConfiguration = FilterConfiguration.fromSimpleFilters(simpleFilters);
    return ScanRequest.builder().application("TestApp").product(ScanRequest.Product.CX).project("TestProject").team("CxServer").namespace("Test").repoName("TestRepo").repoUrl("http://localhost/repo.git").repoUrlWithAuth("http://localhost/repo.git").repoType(ScanRequest.Repository.GITHUB).bugTracker(bugTracker).branch("master").refs(Constants.CX_BRANCH_PREFIX.concat("master")).email(null).incremental(false).scanPreset("Checkmarx Default").filter(filterConfiguration).build();
}
Also used : Filter(com.checkmarx.sdk.dto.sast.Filter) FilterConfiguration(com.checkmarx.sdk.dto.filtering.FilterConfiguration)

Aggregations

FilterConfiguration (com.checkmarx.sdk.dto.filtering.FilterConfiguration)26 BugTracker (com.checkmarx.flow.dto.BugTracker)13 ScanRequest (com.checkmarx.flow.dto.ScanRequest)12 ScanResults (com.checkmarx.sdk.dto.ScanResults)6 Filter (com.checkmarx.sdk.dto.sast.Filter)6 EngineFilterConfiguration (com.checkmarx.sdk.dto.filtering.EngineFilterConfiguration)5 CxConfig (com.checkmarx.sdk.dto.sast.CxConfig)4 IOException (java.io.IOException)4 ControllerRequest (com.checkmarx.flow.dto.ControllerRequest)3 MachinaRuntimeException (com.checkmarx.flow.exception.MachinaRuntimeException)3 CheckmarxException (com.checkmarx.sdk.exception.CheckmarxException)3 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)3 ArrayList (java.util.ArrayList)3 Test (org.junit.Test)3 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)3 FlowOverride (com.checkmarx.flow.dto.FlowOverride)2 Repository (com.checkmarx.flow.dto.bitbucket.Repository)2 InvalidTokenException (com.checkmarx.flow.exception.InvalidTokenException)2 MachinaException (com.checkmarx.flow.exception.MachinaException)2 CxScanParams (com.checkmarx.sdk.dto.cx.CxScanParams)2