Skip to content

Commit d0d38d5

Browse files
committed
Fix some conflicts
Signed-off-by: Ryan Liang <[email protected]>
1 parent 83e80d7 commit d0d38d5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

server/src/main/java/org/opensearch/extensions/ExtensionsManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ protected void doRun() throws Exception {
409409
transportService.sendRequest(
410410
extensionNode,
411411
REQUEST_EXTENSION_ACTION_NAME,
412-
new InitializeExtensionRequest(transportService.getLocalNode(), extension, issueServiceAccount(extension)),
412+
new InitializeExtensionRequest(transportService.getLocalNode(), extensionNode, issueServiceAccount(extensionNode)),
413413
initializeExtensionResponseHandler
414414
);
415415
}

server/src/test/java/org/opensearch/extensions/ExtensionsManagerTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ public void testInitialize() throws Exception {
421421
}
422422

423423
public void testInitializeExtension() throws Exception {
424-
ExtensionsManager extensionsManager = new ExtensionsManager(Set.of());
424+
ExtensionsManager extensionsManager = new ExtensionsManager(Set.of(), identityService);
425425

426426
TransportService mockTransportService = spy(
427427
new TransportService(
@@ -513,7 +513,7 @@ public void testHandleRegisterRestActionsRequest() throws Exception {
513513

514514
public void testHandleRegisterRestActionsRequestRequiresDiscoveryNode() throws Exception {
515515

516-
ExtensionsManager extensionsManager = new ExtensionsManager(Set.of());
516+
ExtensionsManager extensionsManager = new ExtensionsManager(Set.of(), identityService);
517517
initialize(extensionsManager);
518518

519519
RegisterRestActionsRequest registerActionsRequest = new RegisterRestActionsRequest("uniqueId1", List.of(), List.of());
@@ -527,7 +527,7 @@ public void testHandleRegisterRestActionsRequestRequiresDiscoveryNode() throws E
527527

528528
public void testHandleRegisterRestActionsRequestMultiple() throws Exception {
529529

530-
ExtensionsManager extensionsManager = new ExtensionsManager(Set.of());
530+
ExtensionsManager extensionsManager = new ExtensionsManager(Set.of(), identityService);
531531
initialize(extensionsManager);
532532

533533
List<String> actionsList = List.of("GET /foo foo", "PUT /bar bar", "POST /baz baz");

0 commit comments

Comments
 (0)