Skip to content

Commit

Permalink
Lazy test setup, but this should finally work
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Widdis <widdis@gmail.com>
  • Loading branch information
dbwiddis committed Mar 18, 2023
1 parent b1f7982 commit fe5f5ff
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import org.opensearch.Version;
import org.opensearch.action.ActionModule;
import org.opensearch.action.ActionModule.DynamicActionRegistry;
import org.opensearch.action.support.ActionFilters;
import org.opensearch.client.node.NodeClient;
import org.opensearch.cluster.node.DiscoveryNode;
import org.opensearch.common.io.stream.NamedWriteableRegistry;
Expand Down Expand Up @@ -96,7 +97,7 @@ public void setup() throws Exception {
client = new NoOpNodeClient(this.getTestName());
ActionModule mockActionModule = mock(ActionModule.class);
DynamicActionRegistry dynamicActionRegistry = new DynamicActionRegistry();
dynamicActionRegistry.initialize(Collections.emptyMap(), null, transportService, null);
dynamicActionRegistry.initialize(Collections.emptyMap(), new ActionFilters(Collections.emptySet()), transportService, null);
when(mockActionModule.getDynamicActionRegistry()).thenReturn(dynamicActionRegistry);
extensionTransportActionsHandler = new ExtensionTransportActionsHandler(
Map.of("uniqueid1", discoveryExtensionNode),
Expand Down

0 comments on commit fe5f5ff

Please sign in to comment.