From a8f487a3f4ffdf61c084811cf96f2226d1d568b4 Mon Sep 17 00:00:00 2001 From: Daniel Widdis Date: Fri, 17 Mar 2023 18:08:17 -0700 Subject: [PATCH] Maybe tests will pass with this commit Signed-off-by: Daniel Widdis --- server/src/main/java/org/opensearch/action/ActionModule.java | 4 +--- .../action/ExtensionTransportActionsHandlerTests.java | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/server/src/main/java/org/opensearch/action/ActionModule.java b/server/src/main/java/org/opensearch/action/ActionModule.java index 3f50b10518e38..e2f1512819e43 100644 --- a/server/src/main/java/org/opensearch/action/ActionModule.java +++ b/server/src/main/java/org/opensearch/action/ActionModule.java @@ -959,9 +959,7 @@ protected void configure() { } // register dynamic ActionType -> transportAction Map used by NodeClient - if (FeatureFlags.isEnabled(FeatureFlags.EXTENSIONS)) { - bind(DynamicActionRegistry.class).toInstance(dynamicActionRegistry); - } + bind(DynamicActionRegistry.class).toInstance(dynamicActionRegistry); } public ActionFilters getActionFilters() { diff --git a/server/src/test/java/org/opensearch/extensions/action/ExtensionTransportActionsHandlerTests.java b/server/src/test/java/org/opensearch/extensions/action/ExtensionTransportActionsHandlerTests.java index f13e4b569dcf0..d8f4c58819c34 100644 --- a/server/src/test/java/org/opensearch/extensions/action/ExtensionTransportActionsHandlerTests.java +++ b/server/src/test/java/org/opensearch/extensions/action/ExtensionTransportActionsHandlerTests.java @@ -96,6 +96,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); when(mockActionModule.getDynamicActionRegistry()).thenReturn(dynamicActionRegistry); extensionTransportActionsHandler = new ExtensionTransportActionsHandler( Map.of("uniqueid1", discoveryExtensionNode),