Refactor module server/src/test/java/org/elasticsearch/indices (#369)

Signed-off-by: Harold Wang <harowang@amazon.com>
This commit is contained in:
Harold Wang 2021-03-18 08:17:38 -07:00 committed by Nick Knize
parent 70e62f4609
commit cfd8587e5a
38 changed files with 75 additions and 75 deletions

View File

@ -33,9 +33,9 @@ import org.opensearch.cluster.node.DiscoveryNodes;
import org.opensearch.cluster.routing.IndexShardRoutingTable;
import org.opensearch.cluster.routing.ShardRoutingState;
import org.opensearch.common.settings.Settings;
import org.elasticsearch.indices.cluster.ClusterStateChanges;
import org.opensearch.test.OpenSearchTestCase;
import org.opensearch.test.VersionUtils;
import org.opensearch.indices.cluster.ClusterStateChanges;
import org.elasticsearch.test.ESTestCase;
import org.elasticsearch.test.VersionUtils;
import org.opensearch.threadpool.TestThreadPool;
import org.opensearch.threadpool.ThreadPool;

View File

@ -115,7 +115,7 @@ import static org.opensearch.cluster.metadata.MetadataCreateIndexService.getInde
import static org.opensearch.cluster.metadata.MetadataCreateIndexService.parseV1Mappings;
import static org.opensearch.cluster.metadata.MetadataCreateIndexService.resolveAndValidateAliases;
import static org.elasticsearch.index.IndexSettings.INDEX_SOFT_DELETES_SETTING;
import static org.elasticsearch.indices.ShardLimitValidatorTests.createTestShardLimitService;
import static org.opensearch.indices.ShardLimitValidatorTests.createTestShardLimitService;
import static org.hamcrest.Matchers.endsWith;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.hasKey;

View File

@ -90,7 +90,7 @@ import static java.util.Collections.singletonList;
import static org.opensearch.cluster.metadata.MetadataIndexTemplateService.DEFAULT_TIMESTAMP_FIELD;
import static org.opensearch.common.settings.Settings.builder;
import static org.elasticsearch.index.mapper.ParametrizedFieldMapper.Parameter;
import static org.elasticsearch.indices.ShardLimitValidatorTests.createTestShardLimitService;
import static org.opensearch.indices.ShardLimitValidatorTests.createTestShardLimitService;
import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.containsStringIgnoringCase;
import static org.hamcrest.CoreMatchers.equalTo;

View File

@ -42,8 +42,8 @@ import org.opensearch.cluster.routing.allocation.AllocationService;
import org.opensearch.cluster.routing.allocation.FailedShard;
import org.opensearch.cluster.routing.allocation.decider.ClusterRebalanceAllocationDecider;
import org.opensearch.common.settings.Settings;
import org.elasticsearch.indices.cluster.ClusterStateChanges;
import org.opensearch.test.VersionUtils;
import org.opensearch.indices.cluster.ClusterStateChanges;
import org.elasticsearch.test.VersionUtils;
import org.opensearch.threadpool.TestThreadPool;
import org.opensearch.threadpool.ThreadPool;

View File

@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.elasticsearch.indices;
package org.opensearch.indices;
import org.apache.lucene.search.ReferenceManager;
import org.apache.lucene.util.SetOnce;

View File

@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.elasticsearch.indices;
package org.opensearch.indices;
import org.opensearch.Version;
import org.opensearch.cluster.metadata.IndexMetadata;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.indices;
package org.opensearch.indices;
import org.opensearch.Version;
import org.elasticsearch.index.mapper.AllFieldMapper;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.indices;
package org.opensearch.indices;
import org.apache.lucene.document.Document;
import org.apache.lucene.index.DirectoryReader;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.indices;
package org.opensearch.indices;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.indices;
package org.opensearch.indices;
import org.apache.lucene.document.LongPoint;
import org.apache.lucene.search.Query;

View File

@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.elasticsearch.indices;
package org.opensearch.indices;
import org.apache.lucene.search.similarities.BM25Similarity;
import org.apache.lucene.search.similarities.Similarity;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.indices;
package org.opensearch.indices;
import org.opensearch.common.xcontent.ToXContent;
import org.opensearch.test.OpenSearchTestCase;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.indices;
package org.opensearch.indices;
import org.opensearch.Version;
import org.opensearch.cluster.ClusterName;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.indices;
package org.opensearch.indices;
import org.opensearch.test.OpenSearchTestCase;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.indices;
package org.opensearch.indices;
import org.opensearch.tasks.TaskResultsService;
import org.opensearch.test.OpenSearchTestCase;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.indices;
package org.opensearch.indices;
import org.opensearch.Version;
import org.opensearch.common.io.stream.BytesStreamOutput;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.indices.analysis;
package org.opensearch.indices.analysis;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.CharFilter;

View File

@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.elasticsearch.indices.analyze;
package org.opensearch.indices.analyze;
import org.apache.lucene.analysis.hunspell.Dictionary;
import org.opensearch.common.settings.Settings;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.indices.breaker;
package org.opensearch.indices.breaker;
import org.opensearch.common.breaker.CircuitBreaker;
import org.opensearch.common.settings.Settings;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.indices.breaker;
package org.opensearch.indices.breaker;
import org.opensearch.common.breaker.ChildMemoryCircuitBreaker;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.indices.cluster;
package org.opensearch.indices.cluster;
import org.opensearch.action.ActionListener;
import org.opensearch.cluster.ClusterState;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.indices.cluster;
package org.opensearch.indices.cluster;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.indices.cluster;
package org.opensearch.indices.cluster;
import org.apache.logging.log4j.message.ParameterizedMessage;
import org.opensearch.Version;

View File

@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.elasticsearch.indices.flush;
package org.opensearch.indices.flush;
import org.opensearch.action.support.PlainActionFuture;
import org.opensearch.cluster.ClusterState;

View File

@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.elasticsearch.indices.flush;
package org.opensearch.indices.flush;
import org.apache.logging.log4j.Logger;
import org.opensearch.ExceptionsHelper;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.indices.memory.breaker;
package org.opensearch.indices.memory.breaker;
import org.opensearch.common.breaker.CircuitBreaker;
import org.opensearch.common.settings.Settings;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.indices.recovery;
package org.opensearch.indices.recovery;
import org.opensearch.cluster.service.ClusterService;
import org.opensearch.common.settings.ClusterSettings;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.indices.recovery;
package org.opensearch.indices.recovery;
import org.apache.lucene.store.IOContext;
import org.apache.lucene.store.IndexInput;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.indices.recovery;
package org.opensearch.indices.recovery;
import org.opensearch.OpenSearchException;
import org.opensearch.action.ActionListener;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.indices.recovery;
package org.opensearch.indices.recovery;
import org.opensearch.common.settings.ClusterSettings;
import org.opensearch.common.settings.Settings;

View File

@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.elasticsearch.indices.recovery;
package org.opensearch.indices.recovery;
import org.apache.lucene.document.Document;
import org.apache.lucene.document.Field;
@ -78,11 +78,11 @@ import org.opensearch.index.shard.ShardId;
import org.opensearch.index.store.Store;
import org.opensearch.index.store.StoreFileMetadata;
import org.opensearch.index.translog.Translog;
import org.opensearch.test.CorruptionUtils;
import org.opensearch.test.DummyShardLock;
import org.opensearch.test.OpenSearchTestCase;
import org.opensearch.test.IndexSettingsModule;
import org.opensearch.test.VersionUtils;
import org.elasticsearch.test.CorruptionUtils;
import org.elasticsearch.test.DummyShardLock;
import org.elasticsearch.test.ESTestCase;
import org.elasticsearch.test.IndexSettingsModule;
import org.elasticsearch.test.VersionUtils;
import org.opensearch.indices.recovery.AsyncRecoveryTarget;
import org.opensearch.threadpool.FixedExecutorBuilder;
import org.opensearch.threadpool.TestThreadPool;

View File

@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.elasticsearch.indices.recovery;
package org.opensearch.indices.recovery;
import org.apache.lucene.codecs.CodecUtil;
import org.apache.lucene.store.IndexOutput;

View File

@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package org.elasticsearch.indices.recovery;
package org.opensearch.indices.recovery;
import org.opensearch.Version;
import org.opensearch.cluster.node.DiscoveryNode;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.indices.recovery;
package org.opensearch.indices.recovery;
import com.carrotsearch.randomizedtesting.generators.RandomNumbers;
import org.apache.lucene.index.DirectoryReader;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.indices.recovery;
package org.opensearch.indices.recovery;
import org.opensearch.Version;
import org.opensearch.cluster.node.DiscoveryNode;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.indices.settings;
package org.opensearch.indices.settings;
import org.opensearch.action.ActionListener;
import org.opensearch.action.ActionRequest;

View File

@ -17,7 +17,7 @@
* under the License.
*/
package org.elasticsearch.indices.store;
package org.opensearch.indices.store;
import org.opensearch.Version;
import org.opensearch.cluster.node.DiscoveryNode;

View File

@ -62,7 +62,7 @@ import org.opensearch.index.shard.IndexShard;
import org.opensearch.index.shard.SearchOperationListener;
import org.opensearch.index.shard.ShardId;
import org.opensearch.indices.IndicesService;
import org.elasticsearch.indices.settings.InternalOrPrivateSettingsPlugin;
import org.opensearch.indices.settings.InternalOrPrivateSettingsPlugin;
import org.opensearch.plugins.Plugin;
import org.opensearch.plugins.SearchPlugin;
import org.opensearch.rest.RestStatus;