File tree Expand file tree Collapse file tree
server/src/test/java/org/opensearch/action Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232
3333package org .opensearch .action ;
3434
35+ import java .util .ArrayList ;
3536import org .opensearch .action .ActionModule .DynamicActionRegistry ;
3637import org .opensearch .action .main .MainAction ;
3738import org .opensearch .action .main .TransportMainAction ;
5051import org .opensearch .common .util .concurrent .ThreadContext ;
5152import org .opensearch .extensions .action .ExtensionAction ;
5253import org .opensearch .extensions .action .ExtensionTransportAction ;
54+ import org .opensearch .identity .IdentityService ;
5355import org .opensearch .plugins .ActionPlugin ;
5456import 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
You can’t perform that action at this time.
0 commit comments