Skip to content

Commit c28f96e

Browse files
authored
Fix imports related to split package of org.opensearch.transport (#790)
* Fix imports related to split package of org.opensearch.transport Signed-off-by: Craig Perkins <[email protected]> * Update test imports Signed-off-by: Craig Perkins <[email protected]> --------- Signed-off-by: Craig Perkins <[email protected]>
1 parent 264a637 commit c28f96e

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/main/kotlin/org/opensearch/commons/alerting/AlertingPluginInterface.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
package org.opensearch.commons.alerting
66

77
import org.opensearch.action.search.SearchResponse
8-
import org.opensearch.client.node.NodeClient
98
import org.opensearch.commons.alerting.action.AcknowledgeAlertRequest
109
import org.opensearch.commons.alerting.action.AcknowledgeAlertResponse
1110
import org.opensearch.commons.alerting.action.AcknowledgeChainedAlertRequest
@@ -37,6 +36,7 @@ import org.opensearch.core.action.ActionListener
3736
import org.opensearch.core.action.ActionResponse
3837
import org.opensearch.core.common.io.stream.NamedWriteableRegistry
3938
import org.opensearch.core.common.io.stream.Writeable
39+
import org.opensearch.transport.client.node.NodeClient
4040

4141
/**
4242
* All the transport action plugin interfaces for the Alerting plugin

src/main/kotlin/org/opensearch/commons/notifications/NotificationsPluginInterface.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
*/
55
package org.opensearch.commons.notifications
66

7-
import org.opensearch.client.node.NodeClient
87
import org.opensearch.commons.ConfigConstants.OPENSEARCH_SECURITY_USER_INFO_THREAD_CONTEXT
98
import org.opensearch.commons.notifications.action.BaseResponse
109
import org.opensearch.commons.notifications.action.CreateNotificationConfigRequest
@@ -38,6 +37,7 @@ import org.opensearch.commons.utils.recreateObject
3837
import org.opensearch.core.action.ActionListener
3938
import org.opensearch.core.action.ActionResponse
4039
import org.opensearch.core.common.io.stream.Writeable
40+
import org.opensearch.transport.client.node.NodeClient
4141

4242
/**
4343
* All the transport action plugin interfaces for the Notification plugin

src/main/kotlin/org/opensearch/commons/utils/SecureClientWrapper.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ import org.opensearch.action.termvectors.TermVectorsRequest
3434
import org.opensearch.action.termvectors.TermVectorsResponse
3535
import org.opensearch.action.update.UpdateRequest
3636
import org.opensearch.action.update.UpdateResponse
37-
import org.opensearch.client.Client
3837
import org.opensearch.common.action.ActionFuture
3938
import org.opensearch.common.util.concurrent.ThreadContext
4039
import org.opensearch.core.action.ActionListener
4140
import org.opensearch.core.action.ActionResponse
41+
import org.opensearch.transport.client.Client
4242

4343
/**
4444
* Wrapper class on [Client] with security context removed.

src/test/kotlin/org/opensearch/commons/alerting/AlertingPluginInterfaceTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import org.mockito.Mockito.mock
1111
import org.mockito.junit.jupiter.MockitoExtension
1212
import org.opensearch.action.ActionType
1313
import org.opensearch.action.search.SearchResponse
14-
import org.opensearch.client.node.NodeClient
1514
import org.opensearch.common.settings.Settings
1615
import org.opensearch.commons.alerting.action.AcknowledgeAlertRequest
1716
import org.opensearch.commons.alerting.action.AcknowledgeAlertResponse
@@ -46,6 +45,7 @@ import org.opensearch.core.common.io.stream.NamedWriteableRegistry
4645
import org.opensearch.core.rest.RestStatus
4746
import org.opensearch.index.seqno.SequenceNumbers
4847
import org.opensearch.search.SearchModule
48+
import org.opensearch.transport.client.node.NodeClient
4949

5050
@Suppress("UNCHECKED_CAST")
5151
@ExtendWith(MockitoExtension::class)

src/test/kotlin/org/opensearch/commons/notifications/NotificationsPluginInterfaceTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import org.mockito.Mockito.times
1818
import org.mockito.Mockito.verify
1919
import org.mockito.junit.jupiter.MockitoExtension
2020
import org.opensearch.action.ActionType
21-
import org.opensearch.client.node.NodeClient
2221
import org.opensearch.commons.destination.response.LegacyDestinationResponse
2322
import org.opensearch.commons.notifications.action.CreateNotificationConfigRequest
2423
import org.opensearch.commons.notifications.action.CreateNotificationConfigResponse
@@ -50,6 +49,7 @@ import org.opensearch.commons.notifications.model.SeverityType
5049
import org.opensearch.commons.notifications.model.Slack
5150
import org.opensearch.core.action.ActionListener
5251
import org.opensearch.core.rest.RestStatus
52+
import org.opensearch.transport.client.node.NodeClient
5353
import java.time.Instant
5454

5555
@Suppress("UNCHECKED_CAST")

0 commit comments

Comments
 (0)