Class AzureDevopsRestClient
- java.lang.Object
-
- step.repositories.azure.devops.rest.AbstractRestClient
-
- step.repositories.azure.devops.rest.AzureDevopsRestClient
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class AzureDevopsRestClient extends AbstractRestClient
-
-
Field Summary
-
Fields inherited from class step.repositories.azure.devops.rest.AbstractRestClient
client
-
-
Constructor Summary
Constructors Constructor Description AzureDevopsRestClient(String organization, String project, String accessToken)
-
Method Summary
-
Methods inherited from class step.repositories.azure.devops.rest.AbstractRestClient
close, invoke, performCall
-
-
-
-
Method Detail
-
getBaseUri
public String getBaseUri()
-
call
public <T> T call(String method, String relativeUri, Object requestEntity, Class<T> responseType, ApiVersion apiVersion, String urlSuffix)
-
GET
public <T> T GET(RequestSpecification<T> spec, Object... parameters)
-
GET
public <T> T GET(RequestSpecification<T> spec, Object[] parameters, String urlSuffix)
-
DELETE
public <T> void DELETE(RequestSpecification<T> spec, Object... parameters)
-
POST
public <T> T POST(RequestSpecification<T> spec, Object requestEntity, Object... specParameters)
-
PATCH
public <T> T PATCH(RequestSpecification<T> spec, Object requestEntity, Object... requestParameters)
-
getTestSuite
public TestSuite getTestSuite(int planId, int suiteId)
-
getTestCase
public TestCase getTestCase(int planId, int suiteId, int caseId)
-
getTestRun
public TestRun getTestRun(int runId)
-
deleteTestRun
public void deleteTestRun(int runId)
-
createTestRun
public TestRun createTestRun(TestRun.Create create)
-
getTestCaseResult
public TestCaseResult getTestCaseResult(int runId, int testResultId)
-
getTestCaseResults
public List<TestCaseResult> getTestCaseResults(int runId)
-
getTestCaseResultOptional
public Optional<TestCaseResult> getTestCaseResultOptional(int runId, int testCaseId)
-
updateTestCaseResult
public void updateTestCaseResult(TestCaseResult result)
-
uploadAttachment
public void uploadAttachment(ResultAttachment attach, int runId, int resultId)
-
-