-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore using the class ClusterInfoRequest and ClusterInfoRequestBuil…
…der from package 'org.opensearch.action.support.master.info' for subclasses Signed-off-by: Tianli Feng <[email protected]>
- Loading branch information
Tianli Feng
committed
Aug 26, 2022
1 parent
1bfabed
commit 3c4d86d
Showing
5 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
server/src/test/java/org/opensearch/action/admin/indices/get/GetIndexRequestTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
*/ | ||
|
||
package org.opensearch.action.admin.indices.get; | ||
|
||
import org.opensearch.action.support.master.info.ClusterInfoRequest; | ||
import org.opensearch.test.OpenSearchTestCase; | ||
|
||
import static org.hamcrest.Matchers.is; | ||
|
||
public class GetIndexRequestTests extends OpenSearchTestCase { | ||
public void testGetIndexRequestExtendsClusterInfoRequestOfDeprecatedClassPath() { | ||
GetIndexRequest getIndexRequest = new GetIndexRequest().indices("test"); | ||
assertThat(getIndexRequest instanceof ClusterInfoRequest, is(true)); | ||
} | ||
} |