Skip to content

Commit

Permalink
added GetTermVersion action dependency for test
Browse files Browse the repository at this point in the history
Signed-off-by: Rajiv Kumar Vaidyanathan <[email protected]>
  • Loading branch information
rajiv-kv committed Feb 29, 2024
1 parent afda6dd commit e5f41dc
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@
import org.opensearch.action.admin.cluster.state.ClusterStateRequest;
import org.opensearch.action.admin.cluster.state.ClusterStateResponse;
import org.opensearch.action.admin.cluster.state.TransportClusterStateAction;
import org.opensearch.action.admin.cluster.state.term.GetTermVersionAction;
import org.opensearch.action.admin.cluster.state.term.TransportGetTermVersionAction;
import org.opensearch.action.admin.indices.create.CreateIndexAction;
import org.opensearch.action.admin.indices.create.CreateIndexRequest;
import org.opensearch.action.admin.indices.create.CreateIndexResponse;
Expand Down Expand Up @@ -2433,6 +2435,18 @@ public void onFailure(final Exception e) {
indexNameExpressionResolver
)
);

actions.put(
GetTermVersionAction.INSTANCE,
new TransportGetTermVersionAction(
transportService,
clusterService,
threadPool,
actionFilters,
indexNameExpressionResolver
)
);

DynamicActionRegistry dynamicActionRegistry = new DynamicActionRegistry();
dynamicActionRegistry.registerUnmodifiableActionMap(actions);
client.initialize(
Expand Down

0 comments on commit e5f41dc

Please sign in to comment.