|
@@ -24,7 +24,7 @@ public class SeecoderBuildClientTest {
|
|
|
|
|
|
|
|
@Before
|
|
@Before
|
|
|
public void init() throws URISyntaxException, IOException {
|
|
public void init() throws URISyntaxException, IOException {
|
|
|
- client = new SeecoderBuildClient("http://localhost:8080", "3b861b052fd085887b5462fe5ae0c3a916b2c281d776a4d87e7bd5572ad24608");
|
|
|
|
|
|
|
+ client = new SeecoderBuildClient("https://seecoder-build.seec.seecoder.cn", "3b861b052fd085887b5462fe5ae0c3a916b2c281d776a4d87e7bd5572ad24608");
|
|
|
template = IOUtils.readLines(getClass().getClassLoader().getResourceAsStream("config.xml")).stream().collect(Collectors.joining("\n"));
|
|
template = IOUtils.readLines(getClass().getClassLoader().getResourceAsStream("config.xml")).stream().collect(Collectors.joining("\n"));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -71,18 +71,18 @@ public class SeecoderBuildClientTest {
|
|
|
}
|
|
}
|
|
|
@Test
|
|
@Test
|
|
|
public void createJob() {
|
|
public void createJob() {
|
|
|
- String jobName = client.createJob(2, null);
|
|
|
|
|
|
|
+ String jobName = client.createJob(1, "coder-test");
|
|
|
System.out.println(jobName);
|
|
System.out.println(jobName);
|
|
|
}
|
|
}
|
|
|
@Test
|
|
@Test
|
|
|
public void deleteJob() {
|
|
public void deleteJob() {
|
|
|
- String jobName = client.createJob(2, null);
|
|
|
|
|
|
|
+ String jobName = client.createJob(1, "coder-test-2");
|
|
|
System.out.println(jobName);
|
|
System.out.println(jobName);
|
|
|
client.deleteJob(jobName);
|
|
client.deleteJob(jobName);
|
|
|
}
|
|
}
|
|
|
@Test
|
|
@Test
|
|
|
public void getBuildDetails() {
|
|
public void getBuildDetails() {
|
|
|
- BuildDetailsVO detailsVO = client.getBuildDetails("Test", 15);
|
|
|
|
|
|
|
+ BuildDetailsVO detailsVO = client.getBuildDetails("coder-18617-18618", 2);
|
|
|
System.out.println(detailsVO);
|
|
System.out.println(detailsVO);
|
|
|
}
|
|
}
|
|
|
@Test
|
|
@Test
|
|
@@ -98,7 +98,7 @@ public class SeecoderBuildClientTest {
|
|
|
params.put("EXECUTE_SHELL", "mvn cobertura:cobertura");
|
|
params.put("EXECUTE_SHELL", "mvn cobertura:cobertura");
|
|
|
params.put("PROB_TARGET", "COVERAGE");
|
|
params.put("PROB_TARGET", "COVERAGE");
|
|
|
params.put("JAR_ARTIFACT", "org.jacoco.examples.maven.java-1.0-SNAPSHOT.jar");
|
|
params.put("JAR_ARTIFACT", "org.jacoco.examples.maven.java-1.0-SNAPSHOT.jar");
|
|
|
- client.invokeBuild(2, "Test", params);
|
|
|
|
|
|
|
+ System.out.println(client.invokeBuild(1, "coder-test", params));
|
|
|
}
|
|
}
|
|
|
@Test
|
|
@Test
|
|
|
public void getEntity() {
|
|
public void getEntity() {
|