Class DelayedIndexingControl
java.lang.Object
com.atlassian.jira.testkit.client.RestApiClient<DelayedIndexingControl>
com.atlassian.jira.testkit.client.BackdoorControl<DelayedIndexingControl>
com.atlassian.jira.functest.framework.backdoor.BackdoorControl<DelayedIndexingControl>
com.atlassian.jira.functest.framework.backdoor.DelayedIndexingControl
Backdoor control for indexing blocked by a barrier, including full issue load first.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.atlassian.jira.testkit.client.RestApiClient
com.atlassian.jira.testkit.client.RestApiClient.BackdoorLoggingFilter, com.atlassian.jira.testkit.client.RestApiClient.JsonMediaTypeFilter, com.atlassian.jira.testkit.client.RestApiClient.RestCall, com.atlassian.jira.testkit.client.RestApiClient.SessionlessConsistencyFilter -
Field Summary
Fields inherited from class com.atlassian.jira.testkit.client.BackdoorControl
API_REST_PATH, API_REST_VERSION, DEFAULT_REST_PATH, logger, rootPathFields inherited from class com.atlassian.jira.testkit.client.RestApiClient
REST_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionDelayedIndexingControl(com.atlassian.jira.testkit.client.JIRAEnvironmentData environmentData) -
Method Summary
Modifier and TypeMethodDescriptionvoidCleans up the history of the tasks submitted byloadAndReindexIssue(java.lang.String, java.lang.String).getLoadAndReindexTask(int taskId) Return the short state representation of the task submitted byloadAndReindexIssue(java.lang.String, java.lang.String).intloadAndReindexIssue(String issueKey, String reindexBarrierName) Submits and perform the load of the issue followed by the issue reindex operations.Methods inherited from class com.atlassian.jira.functest.framework.backdoor.BackdoorControl
createResourceMethods inherited from class com.atlassian.jira.testkit.client.BackdoorControl
createResourceForPath, createResourceForPath, get, getRestModulePathMethods inherited from class com.atlassian.jira.testkit.client.RestApiClient
anonymous, authenticate, authoriseWithOAuth2, authoriseWithOAuth2, cleanUp, client, createResource, createResourceGadget, createResourceInternal, errorResponse, expanded, getCredentialsProvider, getEnvironmentData, loginAs, loginAs, registerResponse, resourceRoot, resourceRoot, setOf, toResponse, toResponse, toResponse, withCredentialsProvider
-
Constructor Details
-
DelayedIndexingControl
public DelayedIndexingControl(com.atlassian.jira.testkit.client.JIRAEnvironmentData environmentData)
-
-
Method Details
-
loadAndReindexIssue
Submits and perform the load of the issue followed by the issue reindex operations. The reindex is waiting on the barrier specified by the passed name. The function returns after loading the issue.- Parameters:
issueKey- key of the issue to load and then reindexreindexBarrierName- name of the barrier on which the reindex should wait- Returns:
- id of the submitted task.
-
getLoadAndReindexTask
Return the short state representation of the task submitted byloadAndReindexIssue(java.lang.String, java.lang.String).- Parameters:
taskId- the id of the task to check the state for. This is the value returned by callingloadAndReindexIssue(java.lang.String, java.lang.String)- Returns:
- the bean representing current task state
-
cleanTasksHistory
public void cleanTasksHistory()Cleans up the history of the tasks submitted byloadAndReindexIssue(java.lang.String, java.lang.String). Please note that the pending tasks will be removed as well.
-