Search in sources :

Example 11 with Sources

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

the class GitHubServiceTest method getRepoContent.

@IfProfileValue(name = "testprofile", value = "integration")
@Test
public void getRepoContent() {
    ScanRequest request = ScanRequest.builder().namespace("Custodela").repoName("Riches").branch("master").build();
    Sources sources = service.getRepoContent(request);
    assertNotNull(sources);
}
Also used : ScanRequest(com.checkmarx.flow.dto.ScanRequest) Sources(com.checkmarx.flow.dto.Sources) SpringBootTest(org.springframework.boot.test.context.SpringBootTest) Test(org.junit.Test) IfProfileValue(org.springframework.test.annotation.IfProfileValue)

Aggregations

Sources (com.checkmarx.flow.dto.Sources)11 JSONObject (org.json.JSONObject)3 Test (org.junit.Test)3 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)3 HttpClientErrorException (org.springframework.web.client.HttpClientErrorException)3 ScanRequest (com.checkmarx.flow.dto.ScanRequest)2 HashMap (java.util.HashMap)2 HttpHeaders (org.springframework.http.HttpHeaders)2 IfProfileValue (org.springframework.test.annotation.IfProfileValue)2 FlowProperties (com.checkmarx.flow.config.FlowProperties)1 JiraProperties (com.checkmarx.flow.config.JiraProperties)1 CxProfile (com.checkmarx.flow.dto.CxProfile)1 CxProperties (com.checkmarx.sdk.config.CxProperties)1 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 File (java.io.File)1 IOException (java.io.IOException)1 JSONArray (org.json.JSONArray)1 DefaultUriBuilderFactory (org.springframework.web.util.DefaultUriBuilderFactory)1