Skip to content

Commit

Permalink
Restore using the class ClusterInfoRequest and ClusterInfoRequestBuil…
Browse files Browse the repository at this point in the history
…der from package 'org.opensearch.action.support.master.info' for subclasses

Signed-off-by: Tianli Feng <ftianli@amazon.com>
  • Loading branch information
Tianli Feng committed Aug 26, 2022
1 parent 1bfabed commit 3c4d86d
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
package org.opensearch.action.admin.indices.get;

import org.opensearch.action.ActionRequestValidationException;
import org.opensearch.action.support.clustermanager.info.ClusterInfoRequest;
import org.opensearch.action.support.master.info.ClusterInfoRequest;
import org.opensearch.common.io.stream.StreamInput;
import org.opensearch.common.io.stream.StreamOutput;
import org.opensearch.common.util.ArrayUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

package org.opensearch.action.admin.indices.get;

import org.opensearch.action.support.clustermanager.info.ClusterInfoRequestBuilder;
import org.opensearch.action.support.master.info.ClusterInfoRequestBuilder;
import org.opensearch.client.OpenSearchClient;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
package org.opensearch.action.admin.indices.mapping.get;

import org.opensearch.action.ActionRequestValidationException;
import org.opensearch.action.support.clustermanager.info.ClusterInfoRequest;
import org.opensearch.action.support.master.info.ClusterInfoRequest;
import org.opensearch.common.io.stream.StreamInput;

import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

package org.opensearch.action.admin.indices.mapping.get;

import org.opensearch.action.support.clustermanager.info.ClusterInfoRequestBuilder;
import org.opensearch.action.support.master.info.ClusterInfoRequestBuilder;
import org.opensearch.client.OpenSearchClient;

/**
Expand Down
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));
}
}

0 comments on commit 3c4d86d

Please sign in to comment.