Skip to content

Commit

Permalink
Maybe tests will pass with this commit
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Widdis <[email protected]>
  • Loading branch information
dbwiddis committed Mar 18, 2023
1 parent b22dcad commit a8f487a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions server/src/main/java/org/opensearch/action/ActionModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit a8f487a

Please sign in to comment.