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),