Skip to content

Commit 650ff4b

Browse files
add noop to actionmoduletests
Signed-off-by: Stephen Crawford <steecraw@amazon.com>
1 parent 05d0657 commit 650ff4b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

server/src/test/java/org/opensearch/action/ActionModuleTests.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232

3333
package org.opensearch.action;
3434

35+
import java.util.ArrayList;
3536
import org.opensearch.action.ActionModule.DynamicActionRegistry;
3637
import org.opensearch.action.main.MainAction;
3738
import org.opensearch.action.main.TransportMainAction;
@@ -50,6 +51,7 @@
5051
import org.opensearch.common.util.concurrent.ThreadContext;
5152
import org.opensearch.extensions.action.ExtensionAction;
5253
import org.opensearch.extensions.action.ExtensionTransportAction;
54+
import org.opensearch.identity.IdentityService;
5355
import org.opensearch.plugins.ActionPlugin;
5456
import org.opensearch.plugins.ActionPlugin.ActionHandler;
5557

@@ -143,7 +145,8 @@ public void testSetupRestHandlerContainsKnownBuiltin() {
143145
null,
144146
null,
145147
usageService,
146-
null
148+
null,
149+
new IdentityService(Settings.EMPTY, new ArrayList<>())
147150
);
148151
actionModule.initRestHandlers(null);
149152
// At this point the easiest way to confirm that a handler is loaded is to try to register another one on top of it and to fail

0 commit comments

Comments
 (0)