Class OctaneClient
java.lang.Object
io.jenkins.plugins.octanesuitegatebyembiti.repositories.OctaneClient
- All Implemented Interfaces:
AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionOctaneClient(String baseUrl, String clientId, Secret clientSecret) OctaneClient(HttpClient httpClient, String baseUrl, String clientId, Secret clientSecret) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()fetchAvailableSuiteChildRuns(String sharedSpaceId, String workspaceId, List<String> suiteRunIds) Fetches all currently reachable suites while omitting suite runs confirmed as missing.fetchDefectsByIds(String sharedSpaceId, String workspaceId, List<String> defectIds, int maxDefects) fetchLinkedDefects(String sharedSpaceId, String workspaceId, Map<String, List<RunRecord>> suiteRuns, String defectQuery, int maxDefects) fetchSuiteChildRunIds(String sharedSpaceId, String workspaceId, String suiteRunId) fetchSuiteChildRuns(String sharedSpaceId, String workspaceId, String suiteRunId) fetchSuiteChildRuns(String sharedSpaceId, String workspaceId, List<String> suiteRunIds) fetchSuiteRunIdsByReleaseAndSprint(String sharedSpaceId, String workspaceId, String releaseName, String sprintName) Resolves suite runs assigned to the named release and, when supplied, sprint.inttestWorkspaceAccess(String sharedSpaceId, String workspaceId) static OctaneClientwithCredentials(String baseUrl, String clientId, Secret clientSecret) static OctaneClientwithCredentials(String baseUrl, String clientId, Secret clientSecret, boolean secretBaseUrl)
-
Constructor Details
-
OctaneClient
-
OctaneClient
-
-
Method Details
-
withCredentials
-
withCredentials
public static OctaneClient withCredentials(String baseUrl, String clientId, Secret clientSecret, boolean secretBaseUrl) -
authenticate
- Throws:
IOExceptionInterruptedException
-
fetchSuiteChildRuns
public List<RunRecord> fetchSuiteChildRuns(String sharedSpaceId, String workspaceId, String suiteRunId) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
fetchSuiteChildRuns
public Map<String,List<RunRecord>> fetchSuiteChildRuns(String sharedSpaceId, String workspaceId, List<String> suiteRunIds) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
fetchAvailableSuiteChildRuns
public Map<String,List<RunRecord>> fetchAvailableSuiteChildRuns(String sharedSpaceId, String workspaceId, List<String> suiteRunIds) throws IOException, InterruptedException Fetches all currently reachable suites while omitting suite runs confirmed as missing.- Throws:
IOExceptionInterruptedException
-
fetchSuiteRunIdsByReleaseAndSprint
public List<String> fetchSuiteRunIdsByReleaseAndSprint(String sharedSpaceId, String workspaceId, String releaseName, String sprintName) throws IOException, InterruptedException Resolves suite runs assigned to the named release and, when supplied, sprint.- Throws:
IOExceptionInterruptedException
-
fetchScopedRuns
public List<RunRecord> fetchScopedRuns(String sharedSpaceId, String workspaceId, List<String> runIds, String scopeQuery) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
fetchSuiteChildRunIds
public List<String> fetchSuiteChildRunIds(String sharedSpaceId, String workspaceId, String suiteRunId) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
fetchLinkedDefects
public List<DefectRecord> fetchLinkedDefects(String sharedSpaceId, String workspaceId, Map<String, List<RunRecord>> suiteRuns, String defectQuery, int maxDefects) throws IOException, InterruptedException- Throws:
IOExceptionInterruptedException
-
fetchDefectsByIds
public List<DefectRecord> fetchDefectsByIds(String sharedSpaceId, String workspaceId, List<String> defectIds, int maxDefects) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
testWorkspaceAccess
public int testWorkspaceAccess(String sharedSpaceId, String workspaceId) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-