Skip to content

Commit

Permalink
Remove unused method
Browse files Browse the repository at this point in the history
API method TestExecution.create() is removed in Kiwi TCMS v8.6
in favor of TestRun.add_case() which this plugin uses anyway.
  • Loading branch information
atodorov committed Aug 15, 2020
1 parent 682cb92 commit b950bba
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/main/java/org/kiwitcms/java/api/RpcClient.java
Expand Up @@ -47,7 +47,6 @@ public class RpcClient extends BaseRpcClient {
private static final String CREATE_PLAN_METHOD = "TestPlan.create";
private static final String TEST_PLAN_FILTER = "TestPlan.filter";
private static final String TEST_EXECUTION_FILTER = "TestExecution.filter";
private static final String TEST_EXECUTION_CREATE = "TestExecution.create";
private static final String TEST_EXECUTION_UPDATE = "TestExecution.update";
public static final String TEST_CASE_STATUS_FILTER = "TestCaseStatus.filter";

Expand Down Expand Up @@ -241,22 +240,6 @@ public TestExecution getTestExecution(Map<String, Object> filter) {
}
}

public TestExecution createTestExecution(int runId, int caseId, int build, int status) {
Map<String, Object> params = new HashMap<>();
params.put("run", runId);
params.put("case", caseId);
params.put("build", build);
params.put("status", status);

JSONObject json = (JSONObject) executeViaPositionalParams(TEST_EXECUTION_CREATE, Arrays.asList((Object) params));
try {
return new ObjectMapper().readValue(json.toJSONString(), TestExecution.class);
} catch (IOException e) {
e.printStackTrace();
return null;
}
}

public TestExecution updateTestExecution(int tcRunId, int status) {
Map<String, Object> values = new HashMap<>();
values.put("status", status);
Expand Down

0 comments on commit b950bba

Please sign in to comment.