Tests: Remove uses of @Slow and @Integration
Now that integ tests are moved into `mvn verify`, we don't really have a need for @Slow, and especially not @Integration. This removes uses of the first, and completely removes uses of the latter.
This commit is contained in:
parent
bfd2a39a24
commit
be941f0669
|
@ -19,7 +19,6 @@
|
||||||
|
|
||||||
package org.elasticsearch.action;
|
package org.elasticsearch.action;
|
||||||
|
|
||||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
|
||||||
import org.elasticsearch.action.admin.indices.alias.Alias;
|
import org.elasticsearch.action.admin.indices.alias.Alias;
|
||||||
import org.elasticsearch.action.admin.indices.analyze.AnalyzeAction;
|
import org.elasticsearch.action.admin.indices.analyze.AnalyzeAction;
|
||||||
import org.elasticsearch.action.admin.indices.analyze.AnalyzeRequest;
|
import org.elasticsearch.action.admin.indices.analyze.AnalyzeRequest;
|
||||||
|
@ -123,7 +122,6 @@ import static org.hamcrest.Matchers.hasItem;
|
||||||
import static org.hamcrest.Matchers.instanceOf;
|
import static org.hamcrest.Matchers.instanceOf;
|
||||||
|
|
||||||
@ClusterScope(scope = Scope.SUITE, numClientNodes = 1, minNumDataNodes = 2)
|
@ClusterScope(scope = Scope.SUITE, numClientNodes = 1, minNumDataNodes = 2)
|
||||||
@Slow
|
|
||||||
public class IndicesRequestIT extends ElasticsearchIntegrationTest {
|
public class IndicesRequestIT extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
private final List<String> indices = new ArrayList<>();
|
private final List<String> indices = new ArrayList<>();
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
*/
|
*/
|
||||||
package org.elasticsearch.action.admin;
|
package org.elasticsearch.action.admin;
|
||||||
|
|
||||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
|
||||||
import org.elasticsearch.action.ActionListener;
|
import org.elasticsearch.action.ActionListener;
|
||||||
import org.elasticsearch.action.admin.cluster.node.hotthreads.NodeHotThreads;
|
import org.elasticsearch.action.admin.cluster.node.hotthreads.NodeHotThreads;
|
||||||
import org.elasticsearch.action.admin.cluster.node.hotthreads.NodesHotThreadsRequestBuilder;
|
import org.elasticsearch.action.admin.cluster.node.hotthreads.NodesHotThreadsRequestBuilder;
|
||||||
|
@ -32,14 +31,16 @@ import java.util.concurrent.CountDownLatch;
|
||||||
import java.util.concurrent.ExecutionException;
|
import java.util.concurrent.ExecutionException;
|
||||||
import java.util.concurrent.atomic.AtomicBoolean;
|
import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
|
|
||||||
import static org.elasticsearch.index.query.QueryBuilders.*;
|
import static org.elasticsearch.index.query.QueryBuilders.andQuery;
|
||||||
|
import static org.elasticsearch.index.query.QueryBuilders.matchAllQuery;
|
||||||
|
import static org.elasticsearch.index.query.QueryBuilders.notQuery;
|
||||||
|
import static org.elasticsearch.index.query.QueryBuilders.termQuery;
|
||||||
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertHitCount;
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertHitCount;
|
||||||
import static org.hamcrest.CoreMatchers.*;
|
import static org.hamcrest.CoreMatchers.equalTo;
|
||||||
|
import static org.hamcrest.CoreMatchers.is;
|
||||||
|
import static org.hamcrest.CoreMatchers.notNullValue;
|
||||||
import static org.hamcrest.Matchers.lessThan;
|
import static org.hamcrest.Matchers.lessThan;
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
@Slow
|
|
||||||
public class HotThreadsIT extends ElasticsearchIntegrationTest {
|
public class HotThreadsIT extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
|
@ -20,12 +20,14 @@
|
||||||
package org.elasticsearch.action.termvectors;
|
package org.elasticsearch.action.termvectors;
|
||||||
|
|
||||||
import com.carrotsearch.hppc.ObjectIntHashMap;
|
import com.carrotsearch.hppc.ObjectIntHashMap;
|
||||||
|
|
||||||
import org.apache.lucene.analysis.payloads.PayloadHelper;
|
import org.apache.lucene.analysis.payloads.PayloadHelper;
|
||||||
import org.apache.lucene.document.FieldType;
|
import org.apache.lucene.document.FieldType;
|
||||||
import org.apache.lucene.index.*;
|
import org.apache.lucene.index.DirectoryReader;
|
||||||
|
import org.apache.lucene.index.Fields;
|
||||||
|
import org.apache.lucene.index.PostingsEnum;
|
||||||
|
import org.apache.lucene.index.Terms;
|
||||||
|
import org.apache.lucene.index.TermsEnum;
|
||||||
import org.apache.lucene.util.BytesRef;
|
import org.apache.lucene.util.BytesRef;
|
||||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
|
||||||
import org.elasticsearch.ElasticsearchException;
|
import org.elasticsearch.ElasticsearchException;
|
||||||
import org.elasticsearch.action.ActionFuture;
|
import org.elasticsearch.action.ActionFuture;
|
||||||
import org.elasticsearch.action.admin.indices.alias.Alias;
|
import org.elasticsearch.action.admin.indices.alias.Alias;
|
||||||
|
@ -42,17 +44,25 @@ import org.hamcrest.Matcher;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.*;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
import java.util.concurrent.ExecutionException;
|
import java.util.concurrent.ExecutionException;
|
||||||
|
|
||||||
import static org.elasticsearch.common.settings.Settings.settingsBuilder;
|
import static org.elasticsearch.common.settings.Settings.settingsBuilder;
|
||||||
import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder;
|
import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder;
|
||||||
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
||||||
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertThrows;
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertThrows;
|
||||||
import static org.hamcrest.Matchers.*;
|
import static org.hamcrest.Matchers.equalTo;
|
||||||
|
import static org.hamcrest.Matchers.lessThan;
|
||||||
|
import static org.hamcrest.Matchers.notNullValue;
|
||||||
|
import static org.hamcrest.Matchers.nullValue;
|
||||||
|
|
||||||
@Slow
|
public class GetTermVectorsIT extends AbstractTermVectorsTests {
|
||||||
public class GetTermVectorsTests extends AbstractTermVectorsTests {
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testNoSuchDoc() throws Exception {
|
public void testNoSuchDoc() throws Exception {
|
|
@ -19,7 +19,6 @@
|
||||||
|
|
||||||
package org.elasticsearch.aliases;
|
package org.elasticsearch.aliases;
|
||||||
|
|
||||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
|
||||||
import org.elasticsearch.Version;
|
import org.elasticsearch.Version;
|
||||||
import org.elasticsearch.action.ActionRequestValidationException;
|
import org.elasticsearch.action.ActionRequestValidationException;
|
||||||
import org.elasticsearch.action.admin.indices.alias.Alias;
|
import org.elasticsearch.action.admin.indices.alias.Alias;
|
||||||
|
@ -58,17 +57,30 @@ import java.util.concurrent.TimeUnit;
|
||||||
import static com.google.common.collect.Sets.newHashSet;
|
import static com.google.common.collect.Sets.newHashSet;
|
||||||
import static org.elasticsearch.client.Requests.createIndexRequest;
|
import static org.elasticsearch.client.Requests.createIndexRequest;
|
||||||
import static org.elasticsearch.client.Requests.indexRequest;
|
import static org.elasticsearch.client.Requests.indexRequest;
|
||||||
import static org.elasticsearch.cluster.metadata.IndexMetaData.*;
|
import static org.elasticsearch.cluster.metadata.IndexMetaData.INDEX_METADATA_BLOCK;
|
||||||
|
import static org.elasticsearch.cluster.metadata.IndexMetaData.INDEX_READ_ONLY_BLOCK;
|
||||||
|
import static org.elasticsearch.cluster.metadata.IndexMetaData.SETTING_BLOCKS_METADATA;
|
||||||
|
import static org.elasticsearch.cluster.metadata.IndexMetaData.SETTING_BLOCKS_READ;
|
||||||
|
import static org.elasticsearch.cluster.metadata.IndexMetaData.SETTING_BLOCKS_WRITE;
|
||||||
|
import static org.elasticsearch.cluster.metadata.IndexMetaData.SETTING_READ_ONLY;
|
||||||
import static org.elasticsearch.common.settings.Settings.settingsBuilder;
|
import static org.elasticsearch.common.settings.Settings.settingsBuilder;
|
||||||
import static org.elasticsearch.index.query.QueryBuilders.*;
|
import static org.elasticsearch.index.query.QueryBuilders.hasChildQuery;
|
||||||
|
import static org.elasticsearch.index.query.QueryBuilders.hasParentQuery;
|
||||||
|
import static org.elasticsearch.index.query.QueryBuilders.matchAllQuery;
|
||||||
|
import static org.elasticsearch.index.query.QueryBuilders.rangeQuery;
|
||||||
|
import static org.elasticsearch.index.query.QueryBuilders.termQuery;
|
||||||
import static org.elasticsearch.test.hamcrest.CollectionAssertions.hasKey;
|
import static org.elasticsearch.test.hamcrest.CollectionAssertions.hasKey;
|
||||||
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.*;
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
||||||
import static org.hamcrest.Matchers.*;
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertBlocked;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertHitCount;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertSearchResponse;
|
||||||
|
import static org.hamcrest.Matchers.containsInAnyOrder;
|
||||||
|
import static org.hamcrest.Matchers.containsString;
|
||||||
|
import static org.hamcrest.Matchers.equalTo;
|
||||||
|
import static org.hamcrest.Matchers.lessThan;
|
||||||
|
import static org.hamcrest.Matchers.notNullValue;
|
||||||
|
import static org.hamcrest.Matchers.nullValue;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@Slow
|
|
||||||
public class IndexAliasesIT extends ElasticsearchIntegrationTest {
|
public class IndexAliasesIT extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
|
@ -24,7 +24,6 @@ import com.google.common.util.concurrent.ListenableFuture;
|
||||||
import org.apache.lucene.index.IndexWriter;
|
import org.apache.lucene.index.IndexWriter;
|
||||||
import org.apache.lucene.util.LuceneTestCase;
|
import org.apache.lucene.util.LuceneTestCase;
|
||||||
import org.apache.lucene.util.TestUtil;
|
import org.apache.lucene.util.TestUtil;
|
||||||
import org.elasticsearch.ResourceNotFoundException;
|
|
||||||
import org.elasticsearch.Version;
|
import org.elasticsearch.Version;
|
||||||
import org.elasticsearch.action.admin.indices.get.GetIndexResponse;
|
import org.elasticsearch.action.admin.indices.get.GetIndexResponse;
|
||||||
import org.elasticsearch.action.get.GetResponse;
|
import org.elasticsearch.action.get.GetResponse;
|
||||||
|
@ -59,9 +58,19 @@ import org.junit.Test;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.nio.file.*;
|
import java.nio.file.DirectoryStream;
|
||||||
|
import java.nio.file.FileVisitResult;
|
||||||
|
import java.nio.file.Files;
|
||||||
|
import java.nio.file.Path;
|
||||||
|
import java.nio.file.SimpleFileVisitor;
|
||||||
import java.nio.file.attribute.BasicFileAttributes;
|
import java.nio.file.attribute.BasicFileAttributes;
|
||||||
import java.util.*;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Locale;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.SortedSet;
|
||||||
|
import java.util.TreeSet;
|
||||||
|
|
||||||
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
||||||
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertNoFailures;
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertNoFailures;
|
||||||
|
@ -71,7 +80,6 @@ import static org.hamcrest.Matchers.greaterThanOrEqualTo;
|
||||||
// needs at least 2 nodes since it bumps replicas to 1
|
// needs at least 2 nodes since it bumps replicas to 1
|
||||||
@ElasticsearchIntegrationTest.ClusterScope(scope = ElasticsearchIntegrationTest.Scope.TEST, numDataNodes = 0)
|
@ElasticsearchIntegrationTest.ClusterScope(scope = ElasticsearchIntegrationTest.Scope.TEST, numDataNodes = 0)
|
||||||
@LuceneTestCase.SuppressFileSystems("ExtrasFS")
|
@LuceneTestCase.SuppressFileSystems("ExtrasFS")
|
||||||
@LuceneTestCase.Slow
|
|
||||||
public class OldIndexBackwardsCompatibilityIT extends ElasticsearchIntegrationTest {
|
public class OldIndexBackwardsCompatibilityIT extends ElasticsearchIntegrationTest {
|
||||||
// TODO: test for proper exception on unsupported indexes (maybe via separate test?)
|
// TODO: test for proper exception on unsupported indexes (maybe via separate test?)
|
||||||
// We have a 0.20.6.zip etc for this.
|
// We have a 0.20.6.zip etc for this.
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
*/
|
*/
|
||||||
package org.elasticsearch.bwcompat;
|
package org.elasticsearch.bwcompat;
|
||||||
|
|
||||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
|
||||||
import org.elasticsearch.Version;
|
import org.elasticsearch.Version;
|
||||||
import org.elasticsearch.action.admin.cluster.snapshots.get.GetSnapshotsResponse;
|
import org.elasticsearch.action.admin.cluster.snapshots.get.GetSnapshotsResponse;
|
||||||
import org.elasticsearch.action.admin.cluster.snapshots.restore.RestoreSnapshotResponse;
|
import org.elasticsearch.action.admin.cluster.snapshots.restore.RestoreSnapshotResponse;
|
||||||
|
@ -52,11 +51,13 @@ import java.util.TreeSet;
|
||||||
import static com.google.common.collect.Lists.newArrayList;
|
import static com.google.common.collect.Lists.newArrayList;
|
||||||
import static org.elasticsearch.common.settings.Settings.settingsBuilder;
|
import static org.elasticsearch.common.settings.Settings.settingsBuilder;
|
||||||
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
||||||
import static org.hamcrest.Matchers.*;
|
import static org.hamcrest.Matchers.containsString;
|
||||||
|
import static org.hamcrest.Matchers.equalTo;
|
||||||
|
import static org.hamcrest.Matchers.greaterThan;
|
||||||
|
import static org.hamcrest.Matchers.notNullValue;
|
||||||
|
|
||||||
@Slow
|
|
||||||
@ClusterScope(scope = Scope.TEST)
|
@ClusterScope(scope = Scope.TEST)
|
||||||
public class RestoreBackwardsCompatTests extends AbstractSnapshotIT {
|
public class RestoreBackwardsCompatIT extends AbstractSnapshotIT {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected Settings nodeSettings(int nodeOrdinal) {
|
protected Settings nodeSettings(int nodeOrdinal) {
|
|
@ -621,7 +621,7 @@ public class ClusterServiceIT extends ElasticsearchIntegrationTest {
|
||||||
block2.countDown();
|
block2.countDown();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test @Slow
|
@Test
|
||||||
public void testLocalNodeMasterListenerCallbacks() throws Exception {
|
public void testLocalNodeMasterListenerCallbacks() throws Exception {
|
||||||
Settings settings = settingsBuilder()
|
Settings settings = settingsBuilder()
|
||||||
.put("discovery.type", "zen")
|
.put("discovery.type", "zen")
|
||||||
|
|
|
@ -165,7 +165,7 @@ public class MinimumMasterNodesIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test @Slow
|
@Test
|
||||||
public void multipleNodesShutdownNonMasterNodes() throws Exception {
|
public void multipleNodesShutdownNonMasterNodes() throws Exception {
|
||||||
Settings settings = settingsBuilder()
|
Settings settings = settingsBuilder()
|
||||||
.put("discovery.type", "zen")
|
.put("discovery.type", "zen")
|
||||||
|
|
|
@ -33,11 +33,7 @@ import static org.elasticsearch.test.ElasticsearchIntegrationTest.*;
|
||||||
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
||||||
import static org.hamcrest.Matchers.*;
|
import static org.hamcrest.Matchers.*;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@ClusterScope(scope = Scope.TEST, numDataNodes = 0)
|
@ClusterScope(scope = Scope.TEST, numDataNodes = 0)
|
||||||
@Slow
|
|
||||||
public class SpecificMasterNodesIT extends ElasticsearchIntegrationTest {
|
public class SpecificMasterNodesIT extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
protected final Settings.Builder settingsBuilder() {
|
protected final Settings.Builder settingsBuilder() {
|
||||||
|
|
|
@ -105,7 +105,6 @@ public class AwarenessAllocationIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testAwarenessZones() throws Exception {
|
public void testAwarenessZones() throws Exception {
|
||||||
Settings commonSettings = Settings.settingsBuilder()
|
Settings commonSettings = Settings.settingsBuilder()
|
||||||
.put("cluster.routing.allocation.awareness.force.zone.values", "a,b")
|
.put("cluster.routing.allocation.awareness.force.zone.values", "a,b")
|
||||||
|
@ -145,7 +144,6 @@ public class AwarenessAllocationIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testAwarenessZonesIncrementalNodes() throws Exception {
|
public void testAwarenessZonesIncrementalNodes() throws Exception {
|
||||||
Settings commonSettings = Settings.settingsBuilder()
|
Settings commonSettings = Settings.settingsBuilder()
|
||||||
.put("cluster.routing.allocation.awareness.force.zone.values", "a,b")
|
.put("cluster.routing.allocation.awareness.force.zone.values", "a,b")
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
package org.elasticsearch.cluster.routing.allocation;
|
package org.elasticsearch.cluster.routing.allocation;
|
||||||
|
|
||||||
import org.apache.lucene.util.TestUtil;
|
import org.apache.lucene.util.TestUtil;
|
||||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
|
||||||
import org.elasticsearch.Version;
|
import org.elasticsearch.Version;
|
||||||
import org.elasticsearch.cluster.ClusterState;
|
import org.elasticsearch.cluster.ClusterState;
|
||||||
import org.elasticsearch.cluster.metadata.IndexMetaData;
|
import org.elasticsearch.cluster.metadata.IndexMetaData;
|
||||||
|
@ -41,7 +40,6 @@ import static org.elasticsearch.common.settings.Settings.settingsBuilder;
|
||||||
/**
|
/**
|
||||||
* see issue #9023
|
* see issue #9023
|
||||||
*/
|
*/
|
||||||
@Slow
|
|
||||||
public class BalanceUnbalancedClusterTest extends CatAllocationTestBase {
|
public class BalanceUnbalancedClusterTest extends CatAllocationTestBase {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
package org.elasticsearch.codecs;
|
package org.elasticsearch.codecs;
|
||||||
|
|
||||||
import org.apache.lucene.codecs.Codec;
|
import org.apache.lucene.codecs.Codec;
|
||||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
|
||||||
import org.elasticsearch.Version;
|
import org.elasticsearch.Version;
|
||||||
import org.elasticsearch.cluster.metadata.IndexMetaData;
|
import org.elasticsearch.cluster.metadata.IndexMetaData;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
|
@ -36,9 +35,6 @@ import java.io.IOException;
|
||||||
|
|
||||||
import static org.hamcrest.Matchers.containsString;
|
import static org.hamcrest.Matchers.containsString;
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
@Slow
|
|
||||||
public class CodecTests extends ElasticsearchSingleNodeTest {
|
public class CodecTests extends ElasticsearchSingleNodeTest {
|
||||||
|
|
||||||
public void testAcceptPostingsFormat() throws IOException {
|
public void testAcceptPostingsFormat() throws IOException {
|
||||||
|
|
|
@ -72,9 +72,6 @@ import static org.elasticsearch.test.ElasticsearchIntegrationTest.Scope;
|
||||||
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
||||||
import static org.hamcrest.Matchers.*;
|
import static org.hamcrest.Matchers.*;
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
@LuceneTestCase.Slow
|
|
||||||
@ClusterScope(scope = Scope.TEST, numDataNodes = 0, transportClientRatio = 0)
|
@ClusterScope(scope = Scope.TEST, numDataNodes = 0, transportClientRatio = 0)
|
||||||
public class DiscoveryWithServiceDisruptionsIT extends ElasticsearchIntegrationTest {
|
public class DiscoveryWithServiceDisruptionsIT extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
|
|
||||||
package org.elasticsearch.discovery;
|
package org.elasticsearch.discovery;
|
||||||
|
|
||||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
|
||||||
import org.elasticsearch.cluster.ClusterState;
|
import org.elasticsearch.cluster.ClusterState;
|
||||||
import org.elasticsearch.cluster.node.DiscoveryNode;
|
import org.elasticsearch.cluster.node.DiscoveryNode;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
|
@ -36,7 +35,6 @@ import java.util.concurrent.ExecutionException;
|
||||||
import static org.hamcrest.Matchers.equalTo;
|
import static org.hamcrest.Matchers.equalTo;
|
||||||
|
|
||||||
@ClusterScope(scope = Scope.TEST, numDataNodes = 0)
|
@ClusterScope(scope = Scope.TEST, numDataNodes = 0)
|
||||||
@Slow
|
|
||||||
public class ZenUnicastDiscoveryIT extends ElasticsearchIntegrationTest {
|
public class ZenUnicastDiscoveryIT extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
private ClusterDiscoveryConfiguration discoveryConfig;
|
private ClusterDiscoveryConfiguration discoveryConfig;
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
|
|
||||||
package org.elasticsearch.discovery.zen;
|
package org.elasticsearch.discovery.zen;
|
||||||
|
|
||||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
|
||||||
import org.elasticsearch.ExceptionsHelper;
|
import org.elasticsearch.ExceptionsHelper;
|
||||||
import org.elasticsearch.Version;
|
import org.elasticsearch.Version;
|
||||||
import org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse;
|
import org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse;
|
||||||
|
@ -42,7 +41,11 @@ import org.elasticsearch.discovery.zen.publish.PublishClusterStateAction;
|
||||||
import org.elasticsearch.test.ElasticsearchIntegrationTest;
|
import org.elasticsearch.test.ElasticsearchIntegrationTest;
|
||||||
import org.elasticsearch.test.junit.annotations.TestLogging;
|
import org.elasticsearch.test.junit.annotations.TestLogging;
|
||||||
import org.elasticsearch.threadpool.ThreadPool;
|
import org.elasticsearch.threadpool.ThreadPool;
|
||||||
import org.elasticsearch.transport.*;
|
import org.elasticsearch.transport.BytesTransportRequest;
|
||||||
|
import org.elasticsearch.transport.EmptyTransportResponseHandler;
|
||||||
|
import org.elasticsearch.transport.TransportException;
|
||||||
|
import org.elasticsearch.transport.TransportResponse;
|
||||||
|
import org.elasticsearch.transport.TransportService;
|
||||||
import org.hamcrest.Matchers;
|
import org.hamcrest.Matchers;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
@ -54,12 +57,15 @@ import java.util.concurrent.CountDownLatch;
|
||||||
import java.util.concurrent.ExecutionException;
|
import java.util.concurrent.ExecutionException;
|
||||||
import java.util.concurrent.atomic.AtomicReference;
|
import java.util.concurrent.atomic.AtomicReference;
|
||||||
|
|
||||||
import static org.hamcrest.Matchers.*;
|
import static org.hamcrest.Matchers.containsString;
|
||||||
|
import static org.hamcrest.Matchers.equalTo;
|
||||||
|
import static org.hamcrest.Matchers.is;
|
||||||
|
import static org.hamcrest.Matchers.not;
|
||||||
|
import static org.hamcrest.Matchers.notNullValue;
|
||||||
|
import static org.hamcrest.Matchers.nullValue;
|
||||||
|
import static org.hamcrest.Matchers.sameInstance;
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
@ElasticsearchIntegrationTest.ClusterScope(scope = ElasticsearchIntegrationTest.Scope.TEST, numDataNodes = 0, numClientNodes = 0)
|
@ElasticsearchIntegrationTest.ClusterScope(scope = ElasticsearchIntegrationTest.Scope.TEST, numDataNodes = 0, numClientNodes = 0)
|
||||||
@Slow
|
|
||||||
public class ZenDiscoveryIT extends ElasticsearchIntegrationTest {
|
public class ZenDiscoveryIT extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
|
@ -43,10 +43,7 @@ import java.net.MulticastSocket;
|
||||||
|
|
||||||
import static org.hamcrest.Matchers.equalTo;
|
import static org.hamcrest.Matchers.equalTo;
|
||||||
|
|
||||||
/**
|
public class MulticastZenPingIT extends ElasticsearchTestCase {
|
||||||
*
|
|
||||||
*/
|
|
||||||
public class MulticastZenPingTests extends ElasticsearchTestCase {
|
|
||||||
|
|
||||||
private Settings buildRandomMulticast(Settings settings) {
|
private Settings buildRandomMulticast(Settings settings) {
|
||||||
Settings.Builder builder = Settings.builder().put(settings);
|
Settings.Builder builder = Settings.builder().put(settings);
|
|
@ -36,16 +36,11 @@ import org.elasticsearch.test.ElasticsearchTestCase;
|
||||||
import org.elasticsearch.threadpool.ThreadPool;
|
import org.elasticsearch.threadpool.ThreadPool;
|
||||||
import org.elasticsearch.transport.TransportService;
|
import org.elasticsearch.transport.TransportService;
|
||||||
import org.elasticsearch.transport.netty.NettyTransport;
|
import org.elasticsearch.transport.netty.NettyTransport;
|
||||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import static org.hamcrest.Matchers.equalTo;
|
import static org.hamcrest.Matchers.equalTo;
|
||||||
|
|
||||||
/**
|
public class UnicastZenPingIT extends ElasticsearchTestCase {
|
||||||
*
|
|
||||||
*/
|
|
||||||
@Slow
|
|
||||||
public class UnicastZenPingTests extends ElasticsearchTestCase {
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testSimplePings() throws InterruptedException {
|
public void testSimplePings() throws InterruptedException {
|
|
@ -19,7 +19,6 @@
|
||||||
|
|
||||||
package org.elasticsearch.gateway;
|
package org.elasticsearch.gateway;
|
||||||
|
|
||||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
|
||||||
import org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse;
|
import org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse;
|
||||||
import org.elasticsearch.action.admin.cluster.state.ClusterStateResponse;
|
import org.elasticsearch.action.admin.cluster.state.ClusterStateResponse;
|
||||||
import org.elasticsearch.action.get.GetResponse;
|
import org.elasticsearch.action.get.GetResponse;
|
||||||
|
@ -46,11 +45,7 @@ import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertHitC
|
||||||
import static org.hamcrest.Matchers.equalTo;
|
import static org.hamcrest.Matchers.equalTo;
|
||||||
import static org.hamcrest.Matchers.nullValue;
|
import static org.hamcrest.Matchers.nullValue;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@ClusterScope(scope = Scope.TEST, numDataNodes = 0)
|
@ClusterScope(scope = Scope.TEST, numDataNodes = 0)
|
||||||
@Slow
|
|
||||||
public class GatewayIndexStateIT extends ElasticsearchIntegrationTest {
|
public class GatewayIndexStateIT extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
private final ESLogger logger = Loggers.getLogger(GatewayIndexStateIT.class);
|
private final ESLogger logger = Loggers.getLogger(GatewayIndexStateIT.class);
|
||||||
|
|
|
@ -21,7 +21,6 @@ package org.elasticsearch.gateway;
|
||||||
|
|
||||||
import com.carrotsearch.hppc.cursors.ObjectObjectCursor;
|
import com.carrotsearch.hppc.cursors.ObjectObjectCursor;
|
||||||
import com.google.common.base.Predicate;
|
import com.google.common.base.Predicate;
|
||||||
import org.apache.lucene.util.LuceneTestCase;
|
|
||||||
import org.elasticsearch.action.admin.cluster.state.ClusterStateResponse;
|
import org.elasticsearch.action.admin.cluster.state.ClusterStateResponse;
|
||||||
import org.elasticsearch.action.admin.indices.mapping.get.GetMappingsResponse;
|
import org.elasticsearch.action.admin.indices.mapping.get.GetMappingsResponse;
|
||||||
import org.elasticsearch.cluster.metadata.IndexMetaData;
|
import org.elasticsearch.cluster.metadata.IndexMetaData;
|
||||||
|
@ -43,10 +42,6 @@ import static org.elasticsearch.test.InternalTestCluster.RestartCallback;
|
||||||
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
||||||
import static org.hamcrest.Matchers.equalTo;
|
import static org.hamcrest.Matchers.equalTo;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@LuceneTestCase.Slow
|
|
||||||
@ClusterScope(scope = Scope.TEST, numDataNodes = 0)
|
@ClusterScope(scope = Scope.TEST, numDataNodes = 0)
|
||||||
public class MetaDataWriteDataNodesIT extends ElasticsearchIntegrationTest {
|
public class MetaDataWriteDataNodesIT extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,6 @@ public class QuorumGatewayIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testChangeInitialShardsRecovery() throws Exception {
|
public void testChangeInitialShardsRecovery() throws Exception {
|
||||||
logger.info("--> starting 3 nodes");
|
logger.info("--> starting 3 nodes");
|
||||||
final String[] nodes = internalCluster().startNodesAsync(3).get().toArray(new String[0]);
|
final String[] nodes = internalCluster().startNodesAsync(3).get().toArray(new String[0]);
|
||||||
|
@ -118,7 +117,6 @@ public class QuorumGatewayIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testQuorumRecovery() throws Exception {
|
public void testQuorumRecovery() throws Exception {
|
||||||
|
|
||||||
logger.info("--> starting 3 nodes");
|
logger.info("--> starting 3 nodes");
|
||||||
|
|
|
@ -20,8 +20,6 @@
|
||||||
package org.elasticsearch.gateway;
|
package org.elasticsearch.gateway;
|
||||||
|
|
||||||
import com.google.common.collect.ImmutableSet;
|
import com.google.common.collect.ImmutableSet;
|
||||||
|
|
||||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
|
||||||
import org.elasticsearch.client.Client;
|
import org.elasticsearch.client.Client;
|
||||||
import org.elasticsearch.cluster.block.ClusterBlock;
|
import org.elasticsearch.cluster.block.ClusterBlock;
|
||||||
import org.elasticsearch.cluster.block.ClusterBlockLevel;
|
import org.elasticsearch.cluster.block.ClusterBlockLevel;
|
||||||
|
@ -36,11 +34,7 @@ import static org.elasticsearch.test.ElasticsearchIntegrationTest.Scope;
|
||||||
import static org.hamcrest.Matchers.equalTo;
|
import static org.hamcrest.Matchers.equalTo;
|
||||||
import static org.hamcrest.Matchers.hasItem;
|
import static org.hamcrest.Matchers.hasItem;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@ClusterScope(scope = Scope.TEST, numDataNodes = 0)
|
@ClusterScope(scope = Scope.TEST, numDataNodes = 0)
|
||||||
@Slow
|
|
||||||
public class RecoverAfterNodesIT extends ElasticsearchIntegrationTest {
|
public class RecoverAfterNodesIT extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
private final static TimeValue BLOCK_WAIT_TIMEOUT = TimeValue.timeValueSeconds(10);
|
private final static TimeValue BLOCK_WAIT_TIMEOUT = TimeValue.timeValueSeconds(10);
|
||||||
|
|
|
@ -62,9 +62,7 @@ public class RecoveryBackwardsCompatibilityIT extends ElasticsearchBackwardsComp
|
||||||
return 3;
|
return 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@LuceneTestCase.Slow
|
|
||||||
public void testReusePeerRecovery() throws Exception {
|
public void testReusePeerRecovery() throws Exception {
|
||||||
assertAcked(prepareCreate("test").setSettings(Settings.builder().put(indexSettings())
|
assertAcked(prepareCreate("test").setSettings(Settings.builder().put(indexSettings())
|
||||||
.put(IndexMetaData.SETTING_NUMBER_OF_REPLICAS, 0)
|
.put(IndexMetaData.SETTING_NUMBER_OF_REPLICAS, 0)
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
|
|
||||||
package org.elasticsearch.gateway;
|
package org.elasticsearch.gateway;
|
||||||
|
|
||||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
|
||||||
import org.elasticsearch.action.admin.indices.recovery.RecoveryResponse;
|
import org.elasticsearch.action.admin.indices.recovery.RecoveryResponse;
|
||||||
import org.elasticsearch.action.admin.indices.recovery.ShardRecoveryResponse;
|
import org.elasticsearch.action.admin.indices.recovery.ShardRecoveryResponse;
|
||||||
import org.elasticsearch.action.admin.indices.stats.IndexStats;
|
import org.elasticsearch.action.admin.indices.stats.IndexStats;
|
||||||
|
@ -50,17 +49,15 @@ import static org.elasticsearch.index.query.QueryBuilders.termQuery;
|
||||||
import static org.elasticsearch.test.ElasticsearchIntegrationTest.Scope;
|
import static org.elasticsearch.test.ElasticsearchIntegrationTest.Scope;
|
||||||
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
||||||
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertHitCount;
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertHitCount;
|
||||||
import static org.hamcrest.Matchers.*;
|
import static org.hamcrest.Matchers.equalTo;
|
||||||
|
import static org.hamcrest.Matchers.greaterThan;
|
||||||
|
import static org.hamcrest.Matchers.not;
|
||||||
|
import static org.hamcrest.Matchers.notNullValue;
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
@ClusterScope(numDataNodes = 0, scope = Scope.TEST)
|
@ClusterScope(numDataNodes = 0, scope = Scope.TEST)
|
||||||
@Slow
|
|
||||||
public class RecoveryFromGatewayIT extends ElasticsearchIntegrationTest {
|
public class RecoveryFromGatewayIT extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testOneNodeRecoverFromGateway() throws Exception {
|
public void testOneNodeRecoverFromGateway() throws Exception {
|
||||||
|
|
||||||
internalCluster().startNode();
|
internalCluster().startNode();
|
||||||
|
@ -103,7 +100,6 @@ public class RecoveryFromGatewayIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testSingleNodeNoFlush() throws Exception {
|
public void testSingleNodeNoFlush() throws Exception {
|
||||||
|
|
||||||
internalCluster().startNode();
|
internalCluster().startNode();
|
||||||
|
@ -188,10 +184,8 @@ public class RecoveryFromGatewayIT extends ElasticsearchIntegrationTest {
|
||||||
assertHitCount(client().prepareCount().setQuery(termQuery("num", 179)).get(), value1Docs);
|
assertHitCount(client().prepareCount().setQuery(termQuery("num", 179)).get(), value1Docs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testSingleNodeWithFlush() throws Exception {
|
public void testSingleNodeWithFlush() throws Exception {
|
||||||
|
|
||||||
internalCluster().startNode();
|
internalCluster().startNode();
|
||||||
|
@ -225,7 +219,6 @@ public class RecoveryFromGatewayIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testTwoNodeFirstNodeCleared() throws Exception {
|
public void testTwoNodeFirstNodeCleared() throws Exception {
|
||||||
|
|
||||||
final String firstNode = internalCluster().startNode();
|
final String firstNode = internalCluster().startNode();
|
||||||
|
@ -265,7 +258,6 @@ public class RecoveryFromGatewayIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testLatestVersionLoaded() throws Exception {
|
public void testLatestVersionLoaded() throws Exception {
|
||||||
// clean two nodes
|
// clean two nodes
|
||||||
internalCluster().startNodesAsync(2, settingsBuilder().put("gateway.recover_after_nodes", 2).build()).get();
|
internalCluster().startNodesAsync(2, settingsBuilder().put("gateway.recover_after_nodes", 2).build()).get();
|
||||||
|
@ -339,7 +331,6 @@ public class RecoveryFromGatewayIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
@TestLogging("gateway:TRACE,indices.recovery:TRACE,index.engine:TRACE")
|
@TestLogging("gateway:TRACE,indices.recovery:TRACE,index.engine:TRACE")
|
||||||
public void testReusePeerRecovery() throws Exception {
|
public void testReusePeerRecovery() throws Exception {
|
||||||
final Settings settings = settingsBuilder()
|
final Settings settings = settingsBuilder()
|
||||||
|
@ -450,7 +441,6 @@ public class RecoveryFromGatewayIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testRecoveryDifferentNodeOrderStartup() throws Exception {
|
public void testRecoveryDifferentNodeOrderStartup() throws Exception {
|
||||||
// we need different data paths so we make sure we start the second node fresh
|
// we need different data paths so we make sure we start the second node fresh
|
||||||
|
|
||||||
|
|
|
@ -40,13 +40,10 @@ import static org.elasticsearch.test.ElasticsearchIntegrationTest.Scope;
|
||||||
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
||||||
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertNoFailures;
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertNoFailures;
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
@ClusterScope(numDataNodes = 1, scope = Scope.SUITE)
|
@ClusterScope(numDataNodes = 1, scope = Scope.SUITE)
|
||||||
public class InternalEngineMergeIT extends ElasticsearchIntegrationTest {
|
public class InternalEngineMergeIT extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testMergesHappening() throws InterruptedException, IOException, ExecutionException {
|
public void testMergesHappening() throws InterruptedException, IOException, ExecutionException {
|
||||||
final int numOfShards = randomIntBetween(1,5);
|
final int numOfShards = randomIntBetween(1,5);
|
||||||
// some settings to keep num segments low
|
// some settings to keep num segments low
|
||||||
|
|
|
@ -1378,7 +1378,6 @@ public class InternalEngineTests extends ElasticsearchTestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Slow
|
|
||||||
@Test
|
@Test
|
||||||
public void testEnableGcDeletes() throws Exception {
|
public void testEnableGcDeletes() throws Exception {
|
||||||
try (Store store = createStore();
|
try (Store store = createStore();
|
||||||
|
|
|
@ -49,7 +49,7 @@ public class IndexActionIT extends ElasticsearchIntegrationTest {
|
||||||
* This test tries to simulate load while creating an index and indexing documents
|
* This test tries to simulate load while creating an index and indexing documents
|
||||||
* while the index is being created.
|
* while the index is being created.
|
||||||
*/
|
*/
|
||||||
@Test @Slow
|
@Test
|
||||||
public void testAutoGenerateIdNoDuplicates() throws Exception {
|
public void testAutoGenerateIdNoDuplicates() throws Exception {
|
||||||
int numberOfIterations = scaledRandomIntBetween(10, 50);
|
int numberOfIterations = scaledRandomIntBetween(10, 50);
|
||||||
for (int i = 0; i < numberOfIterations; i++) {
|
for (int i = 0; i < numberOfIterations; i++) {
|
||||||
|
|
|
@ -55,7 +55,6 @@ import static org.hamcrest.Matchers.*;
|
||||||
@ClusterScope(scope = Scope.TEST, numDataNodes = 0)
|
@ClusterScope(scope = Scope.TEST, numDataNodes = 0)
|
||||||
public class IndexLifecycleActionIT extends ElasticsearchIntegrationTest {
|
public class IndexLifecycleActionIT extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
@Slow
|
|
||||||
@Test
|
@Test
|
||||||
public void testIndexLifecycleActionsWith11Shards1Backup() throws Exception {
|
public void testIndexLifecycleActionsWith11Shards1Backup() throws Exception {
|
||||||
Settings settings = settingsBuilder()
|
Settings settings = settingsBuilder()
|
||||||
|
|
|
@ -22,14 +22,10 @@ package org.elasticsearch.indices.mapping;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
|
||||||
import static org.apache.lucene.util.LuceneTestCase.Slow;
|
|
||||||
import static org.elasticsearch.common.settings.Settings.settingsBuilder;
|
import static org.elasticsearch.common.settings.Settings.settingsBuilder;
|
||||||
import static org.elasticsearch.test.ElasticsearchIntegrationTest.ClusterScope;
|
import static org.elasticsearch.test.ElasticsearchIntegrationTest.ClusterScope;
|
||||||
import static org.elasticsearch.test.ElasticsearchIntegrationTest.Scope;
|
import static org.elasticsearch.test.ElasticsearchIntegrationTest.Scope;
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
@Slow
|
|
||||||
@ClusterScope(scope = Scope.TEST, numDataNodes = 0)
|
@ClusterScope(scope = Scope.TEST, numDataNodes = 0)
|
||||||
public class DedicatedMasterGetFieldMappingIT extends SimpleGetFieldMappingsIT {
|
public class DedicatedMasterGetFieldMappingIT extends SimpleGetFieldMappingsIT {
|
||||||
|
|
||||||
|
|
|
@ -138,7 +138,6 @@ public class UpdateSettingsIT extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
// #6626: make sure we can update throttle settings and the changes take effect
|
// #6626: make sure we can update throttle settings and the changes take effect
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testUpdateThrottleSettings() {
|
public void testUpdateThrottleSettings() {
|
||||||
|
|
||||||
// No throttling at first, only 1 non-replicated shard, force lots of merging:
|
// No throttling at first, only 1 non-replicated shard, force lots of merging:
|
||||||
|
|
|
@ -28,7 +28,13 @@ import org.elasticsearch.cluster.ClusterState;
|
||||||
import org.elasticsearch.cluster.ClusterStateUpdateTask;
|
import org.elasticsearch.cluster.ClusterStateUpdateTask;
|
||||||
import org.elasticsearch.cluster.metadata.IndexMetaData;
|
import org.elasticsearch.cluster.metadata.IndexMetaData;
|
||||||
import org.elasticsearch.cluster.node.DiscoveryNode;
|
import org.elasticsearch.cluster.node.DiscoveryNode;
|
||||||
import org.elasticsearch.cluster.routing.*;
|
import org.elasticsearch.cluster.routing.IndexRoutingTable;
|
||||||
|
import org.elasticsearch.cluster.routing.IndexShardRoutingTable;
|
||||||
|
import org.elasticsearch.cluster.routing.RoutingNode;
|
||||||
|
import org.elasticsearch.cluster.routing.RoutingTable;
|
||||||
|
import org.elasticsearch.cluster.routing.ShardRouting;
|
||||||
|
import org.elasticsearch.cluster.routing.ShardRoutingState;
|
||||||
|
import org.elasticsearch.cluster.routing.TestShardRouting;
|
||||||
import org.elasticsearch.cluster.routing.allocation.command.MoveAllocationCommand;
|
import org.elasticsearch.cluster.routing.allocation.command.MoveAllocationCommand;
|
||||||
import org.elasticsearch.cluster.routing.allocation.decider.EnableAllocationDecider;
|
import org.elasticsearch.cluster.routing.allocation.decider.EnableAllocationDecider;
|
||||||
import org.elasticsearch.cluster.routing.allocation.decider.FilterAllocationDecider;
|
import org.elasticsearch.cluster.routing.allocation.decider.FilterAllocationDecider;
|
||||||
|
@ -92,7 +98,6 @@ public class IndicesStoreIntegrationIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void indexCleanup() throws Exception {
|
public void indexCleanup() throws Exception {
|
||||||
final String masterNode = internalCluster().startNode(Settings.builder().put("node.data", false));
|
final String masterNode = internalCluster().startNode(Settings.builder().put("node.data", false));
|
||||||
final String node_1 = internalCluster().startNode(Settings.builder().put("node.master", false));
|
final String node_1 = internalCluster().startNode(Settings.builder().put("node.master", false));
|
||||||
|
@ -304,7 +309,6 @@ public class IndicesStoreIntegrationIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testShardActiveElseWhere() throws Exception {
|
public void testShardActiveElseWhere() throws Exception {
|
||||||
List<String> nodes = internalCluster().startNodesAsync(2).get();
|
List<String> nodes = internalCluster().startNodesAsync(2).get();
|
||||||
|
|
||||||
|
|
|
@ -46,12 +46,21 @@ import static org.elasticsearch.action.percolate.PercolateSourceBuilder.docBuild
|
||||||
import static org.elasticsearch.client.Requests.clusterHealthRequest;
|
import static org.elasticsearch.client.Requests.clusterHealthRequest;
|
||||||
import static org.elasticsearch.common.settings.Settings.settingsBuilder;
|
import static org.elasticsearch.common.settings.Settings.settingsBuilder;
|
||||||
import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder;
|
import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder;
|
||||||
import static org.elasticsearch.index.query.QueryBuilders.*;
|
import static org.elasticsearch.index.query.QueryBuilders.matchAllQuery;
|
||||||
|
import static org.elasticsearch.index.query.QueryBuilders.rangeQuery;
|
||||||
|
import static org.elasticsearch.index.query.QueryBuilders.termQuery;
|
||||||
import static org.elasticsearch.percolator.PercolatorIT.convertFromTextArray;
|
import static org.elasticsearch.percolator.PercolatorIT.convertFromTextArray;
|
||||||
import static org.elasticsearch.test.ElasticsearchIntegrationTest.ClusterScope;
|
import static org.elasticsearch.test.ElasticsearchIntegrationTest.ClusterScope;
|
||||||
import static org.elasticsearch.test.ElasticsearchIntegrationTest.Scope;
|
import static org.elasticsearch.test.ElasticsearchIntegrationTest.Scope;
|
||||||
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.*;
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
||||||
import static org.hamcrest.Matchers.*;
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertHitCount;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertMatchCount;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertNoFailures;
|
||||||
|
import static org.hamcrest.Matchers.arrayContainingInAnyOrder;
|
||||||
|
import static org.hamcrest.Matchers.arrayWithSize;
|
||||||
|
import static org.hamcrest.Matchers.emptyArray;
|
||||||
|
import static org.hamcrest.Matchers.equalTo;
|
||||||
|
import static org.hamcrest.Matchers.nullValue;
|
||||||
|
|
||||||
@ClusterScope(scope = Scope.TEST, numDataNodes = 0, numClientNodes = 0, transportClientRatio = 0)
|
@ClusterScope(scope = Scope.TEST, numDataNodes = 0, numClientNodes = 0, transportClientRatio = 0)
|
||||||
public class RecoveryPercolatorIT extends ElasticsearchIntegrationTest {
|
public class RecoveryPercolatorIT extends ElasticsearchIntegrationTest {
|
||||||
|
@ -62,7 +71,6 @@ public class RecoveryPercolatorIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testRestartNodePercolator1() throws Exception {
|
public void testRestartNodePercolator1() throws Exception {
|
||||||
internalCluster().startNode();
|
internalCluster().startNode();
|
||||||
assertAcked(prepareCreate("test").addMapping("type1", "field1", "type=string").addMapping(PercolatorService.TYPE_NAME, "color", "type=string"));
|
assertAcked(prepareCreate("test").addMapping("type1", "field1", "type=string").addMapping(PercolatorService.TYPE_NAME, "color", "type=string"));
|
||||||
|
@ -100,7 +108,6 @@ public class RecoveryPercolatorIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testRestartNodePercolator2() throws Exception {
|
public void testRestartNodePercolator2() throws Exception {
|
||||||
internalCluster().startNode();
|
internalCluster().startNode();
|
||||||
assertAcked(prepareCreate("test").addMapping("type1", "field1", "type=string").addMapping(PercolatorService.TYPE_NAME, "color", "type=string"));
|
assertAcked(prepareCreate("test").addMapping("type1", "field1", "type=string").addMapping(PercolatorService.TYPE_NAME, "color", "type=string"));
|
||||||
|
@ -173,7 +180,6 @@ public class RecoveryPercolatorIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testLoadingPercolateQueriesDuringCloseAndOpen() throws Exception {
|
public void testLoadingPercolateQueriesDuringCloseAndOpen() throws Exception {
|
||||||
internalCluster().startNode();
|
internalCluster().startNode();
|
||||||
internalCluster().startNode();
|
internalCluster().startNode();
|
||||||
|
@ -221,13 +227,11 @@ public class RecoveryPercolatorIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testSinglePercolator_recovery() throws Exception {
|
public void testSinglePercolator_recovery() throws Exception {
|
||||||
percolatorRecovery(false);
|
percolatorRecovery(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testMultiPercolator_recovery() throws Exception {
|
public void testMultiPercolator_recovery() throws Exception {
|
||||||
percolatorRecovery(true);
|
percolatorRecovery(true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,7 +53,6 @@ public class FullRollingRestartIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testFullRollingRestart() throws Exception {
|
public void testFullRollingRestart() throws Exception {
|
||||||
Settings settings = Settings.builder().put(ZenDiscovery.SETTING_JOIN_TIMEOUT, "30s").build();
|
Settings settings = Settings.builder().put(ZenDiscovery.SETTING_JOIN_TIMEOUT, "30s").build();
|
||||||
internalCluster().startNode(settings);
|
internalCluster().startNode(settings);
|
||||||
|
|
|
@ -42,7 +42,10 @@ import static org.elasticsearch.cluster.metadata.IndexMetaData.SETTING_NUMBER_OF
|
||||||
import static org.elasticsearch.cluster.metadata.IndexMetaData.SETTING_NUMBER_OF_SHARDS;
|
import static org.elasticsearch.cluster.metadata.IndexMetaData.SETTING_NUMBER_OF_SHARDS;
|
||||||
import static org.elasticsearch.common.settings.Settings.settingsBuilder;
|
import static org.elasticsearch.common.settings.Settings.settingsBuilder;
|
||||||
import static org.elasticsearch.index.query.QueryBuilders.matchAllQuery;
|
import static org.elasticsearch.index.query.QueryBuilders.matchAllQuery;
|
||||||
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.*;
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAllSuccessful;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertHitCount;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertNoTimeout;
|
||||||
import static org.hamcrest.Matchers.equalTo;
|
import static org.hamcrest.Matchers.equalTo;
|
||||||
|
|
||||||
public class RecoveryWhileUnderLoadIT extends ElasticsearchIntegrationTest {
|
public class RecoveryWhileUnderLoadIT extends ElasticsearchIntegrationTest {
|
||||||
|
@ -50,7 +53,6 @@ public class RecoveryWhileUnderLoadIT extends ElasticsearchIntegrationTest {
|
||||||
private final ESLogger logger = Loggers.getLogger(RecoveryWhileUnderLoadIT.class);
|
private final ESLogger logger = Loggers.getLogger(RecoveryWhileUnderLoadIT.class);
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void recoverWhileUnderLoadAllocateReplicasTest() throws Exception {
|
public void recoverWhileUnderLoadAllocateReplicasTest() throws Exception {
|
||||||
logger.info("--> creating test index ...");
|
logger.info("--> creating test index ...");
|
||||||
int numberOfShards = numberOfShards();
|
int numberOfShards = numberOfShards();
|
||||||
|
@ -105,7 +107,6 @@ public class RecoveryWhileUnderLoadIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void recoverWhileUnderLoadAllocateReplicasRelocatePrimariesTest() throws Exception {
|
public void recoverWhileUnderLoadAllocateReplicasRelocatePrimariesTest() throws Exception {
|
||||||
logger.info("--> creating test index ...");
|
logger.info("--> creating test index ...");
|
||||||
int numberOfShards = numberOfShards();
|
int numberOfShards = numberOfShards();
|
||||||
|
@ -158,7 +159,6 @@ public class RecoveryWhileUnderLoadIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void recoverWhileUnderLoadWithReducedAllowedNodes() throws Exception {
|
public void recoverWhileUnderLoadWithReducedAllowedNodes() throws Exception {
|
||||||
logger.info("--> creating test index ...");
|
logger.info("--> creating test index ...");
|
||||||
int numberOfShards = numberOfShards();
|
int numberOfShards = numberOfShards();
|
||||||
|
@ -229,7 +229,6 @@ public class RecoveryWhileUnderLoadIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void recoverWhileRelocating() throws Exception {
|
public void recoverWhileRelocating() throws Exception {
|
||||||
final int numShards = between(2, 10);
|
final int numShards = between(2, 10);
|
||||||
final int numReplicas = 0;
|
final int numReplicas = 0;
|
||||||
|
|
|
@ -57,11 +57,16 @@ import org.elasticsearch.indices.recovery.RecoveryTarget;
|
||||||
import org.elasticsearch.search.SearchHit;
|
import org.elasticsearch.search.SearchHit;
|
||||||
import org.elasticsearch.search.SearchHits;
|
import org.elasticsearch.search.SearchHits;
|
||||||
import org.elasticsearch.test.BackgroundIndexer;
|
import org.elasticsearch.test.BackgroundIndexer;
|
||||||
import org.elasticsearch.test.ElasticsearchIntegrationTest.ClusterScope;
|
|
||||||
import org.elasticsearch.test.ElasticsearchIntegrationTest;
|
import org.elasticsearch.test.ElasticsearchIntegrationTest;
|
||||||
|
import org.elasticsearch.test.ElasticsearchIntegrationTest.ClusterScope;
|
||||||
import org.elasticsearch.test.junit.annotations.TestLogging;
|
import org.elasticsearch.test.junit.annotations.TestLogging;
|
||||||
import org.elasticsearch.test.transport.MockTransportService;
|
import org.elasticsearch.test.transport.MockTransportService;
|
||||||
import org.elasticsearch.transport.*;
|
import org.elasticsearch.transport.Transport;
|
||||||
|
import org.elasticsearch.transport.TransportException;
|
||||||
|
import org.elasticsearch.transport.TransportModule;
|
||||||
|
import org.elasticsearch.transport.TransportRequest;
|
||||||
|
import org.elasticsearch.transport.TransportRequestOptions;
|
||||||
|
import org.elasticsearch.transport.TransportService;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
@ -79,8 +84,13 @@ import java.util.concurrent.TimeUnit;
|
||||||
import static org.elasticsearch.common.settings.Settings.settingsBuilder;
|
import static org.elasticsearch.common.settings.Settings.settingsBuilder;
|
||||||
import static org.elasticsearch.index.query.QueryBuilders.matchAllQuery;
|
import static org.elasticsearch.index.query.QueryBuilders.matchAllQuery;
|
||||||
import static org.elasticsearch.test.ElasticsearchIntegrationTest.Scope;
|
import static org.elasticsearch.test.ElasticsearchIntegrationTest.Scope;
|
||||||
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.*;
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
||||||
import static org.hamcrest.Matchers.*;
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertHitCount;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertNoFailures;
|
||||||
|
import static org.hamcrest.Matchers.equalTo;
|
||||||
|
import static org.hamcrest.Matchers.is;
|
||||||
|
import static org.hamcrest.Matchers.not;
|
||||||
|
import static org.hamcrest.Matchers.startsWith;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
|
@ -145,7 +155,6 @@ public class RelocationIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testRelocationWhileIndexingRandom() throws Exception {
|
public void testRelocationWhileIndexingRandom() throws Exception {
|
||||||
int numberOfRelocations = scaledRandomIntBetween(1, rarely() ? 10 : 4);
|
int numberOfRelocations = scaledRandomIntBetween(1, rarely() ? 10 : 4);
|
||||||
int numberOfReplicas = randomBoolean() ? 0 : 1;
|
int numberOfReplicas = randomBoolean() ? 0 : 1;
|
||||||
|
@ -255,7 +264,6 @@ public class RelocationIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testRelocationWhileRefreshing() throws Exception {
|
public void testRelocationWhileRefreshing() throws Exception {
|
||||||
int numberOfRelocations = scaledRandomIntBetween(1, rarely() ? 10 : 4);
|
int numberOfRelocations = scaledRandomIntBetween(1, rarely() ? 10 : 4);
|
||||||
int numberOfReplicas = randomBoolean() ? 0 : 1;
|
int numberOfReplicas = randomBoolean() ? 0 : 1;
|
||||||
|
@ -441,7 +449,6 @@ public class RelocationIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testCancellationCleansTempFiles() throws Exception {
|
public void testCancellationCleansTempFiles() throws Exception {
|
||||||
final String indexName = "test";
|
final String indexName = "test";
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,6 @@ import static org.hamcrest.Matchers.equalTo;
|
||||||
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
|
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
|
||||||
|
|
||||||
@ElasticsearchIntegrationTest.ClusterScope(scope = ElasticsearchIntegrationTest.Scope.SUITE)
|
@ElasticsearchIntegrationTest.ClusterScope(scope = ElasticsearchIntegrationTest.Scope.SUITE)
|
||||||
@LuceneTestCase.Slow
|
|
||||||
public class SearchWithRejectionsIT extends ElasticsearchIntegrationTest {
|
public class SearchWithRejectionsIT extends ElasticsearchIntegrationTest {
|
||||||
@Override
|
@Override
|
||||||
public Settings nodeSettings(int nodeOrdinal) {
|
public Settings nodeSettings(int nodeOrdinal) {
|
||||||
|
|
|
@ -44,7 +44,6 @@ public class StressSearchServiceReaperIT extends ElasticsearchIntegrationTest {
|
||||||
.put(SearchService.KEEPALIVE_INTERVAL_KEY, TimeValue.timeValueMillis(1)).build();
|
.put(SearchService.KEEPALIVE_INTERVAL_KEY, TimeValue.timeValueMillis(1)).build();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Slow
|
|
||||||
@Test // see issue #5165 - this test fails each time without the fix in pull #5170
|
@Test // see issue #5165 - this test fails each time without the fix in pull #5170
|
||||||
public void testStressReaper() throws ExecutionException, InterruptedException {
|
public void testStressReaper() throws ExecutionException, InterruptedException {
|
||||||
int num = randomIntBetween(100, 150);
|
int num = randomIntBetween(100, 150);
|
||||||
|
|
|
@ -22,8 +22,6 @@ package org.elasticsearch.search.aggregations;
|
||||||
import com.carrotsearch.hppc.IntHashSet;
|
import com.carrotsearch.hppc.IntHashSet;
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
import com.google.common.collect.Maps;
|
import com.google.common.collect.Maps;
|
||||||
|
|
||||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
|
||||||
import org.elasticsearch.action.index.IndexRequestBuilder;
|
import org.elasticsearch.action.index.IndexRequestBuilder;
|
||||||
import org.elasticsearch.action.search.SearchRequestBuilder;
|
import org.elasticsearch.action.search.SearchRequestBuilder;
|
||||||
import org.elasticsearch.action.search.SearchResponse;
|
import org.elasticsearch.action.search.SearchResponse;
|
||||||
|
@ -71,7 +69,6 @@ import static org.hamcrest.core.IsNull.notNullValue;
|
||||||
* Additional tests that aim at testing more complex aggregation trees on larger random datasets, so that things like
|
* Additional tests that aim at testing more complex aggregation trees on larger random datasets, so that things like
|
||||||
* the growth of dynamic arrays is tested.
|
* the growth of dynamic arrays is tested.
|
||||||
*/
|
*/
|
||||||
@Slow
|
|
||||||
public class EquivalenceIT extends ElasticsearchIntegrationTest {
|
public class EquivalenceIT extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
// Make sure that unordered, reversed, disjoint and/or overlapping ranges are supported
|
// Make sure that unordered, reversed, disjoint and/or overlapping ranges are supported
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
|
|
||||||
package org.elasticsearch.search.basic;
|
package org.elasticsearch.search.basic;
|
||||||
|
|
||||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
|
||||||
import org.elasticsearch.action.admin.cluster.health.ClusterHealthStatus;
|
import org.elasticsearch.action.admin.cluster.health.ClusterHealthStatus;
|
||||||
import org.elasticsearch.action.admin.indices.refresh.RefreshResponse;
|
import org.elasticsearch.action.admin.indices.refresh.RefreshResponse;
|
||||||
import org.elasticsearch.action.search.SearchResponse;
|
import org.elasticsearch.action.search.SearchResponse;
|
||||||
|
@ -39,25 +38,21 @@ import static org.hamcrest.Matchers.greaterThanOrEqualTo;
|
||||||
public class SearchWhileCreatingIndexIT extends ElasticsearchIntegrationTest {
|
public class SearchWhileCreatingIndexIT extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testIndexCausesIndexCreation() throws Exception {
|
public void testIndexCausesIndexCreation() throws Exception {
|
||||||
searchWhileCreatingIndex(false, 1); // 1 replica in our default...
|
searchWhileCreatingIndex(false, 1); // 1 replica in our default...
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testNoReplicas() throws Exception {
|
public void testNoReplicas() throws Exception {
|
||||||
searchWhileCreatingIndex(true, 0);
|
searchWhileCreatingIndex(true, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testOneReplica() throws Exception {
|
public void testOneReplica() throws Exception {
|
||||||
searchWhileCreatingIndex(true, 1);
|
searchWhileCreatingIndex(true, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testTwoReplicas() throws Exception {
|
public void testTwoReplicas() throws Exception {
|
||||||
searchWhileCreatingIndex(true, 2);
|
searchWhileCreatingIndex(true, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,12 +49,13 @@ import java.util.Random;
|
||||||
import java.util.concurrent.ExecutionException;
|
import java.util.concurrent.ExecutionException;
|
||||||
|
|
||||||
import static org.elasticsearch.common.settings.Settings.settingsBuilder;
|
import static org.elasticsearch.common.settings.Settings.settingsBuilder;
|
||||||
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.*;
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertHitCount;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertNoFailures;
|
||||||
|
|
||||||
public class SearchWithRandomExceptionsIT extends ElasticsearchIntegrationTest {
|
public class SearchWithRandomExceptionsIT extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow // maybe due to all the logging?
|
|
||||||
@TestLogging("action.search.type:TRACE,index.shard:TRACE")
|
@TestLogging("action.search.type:TRACE,index.shard:TRACE")
|
||||||
public void testRandomDirectoryIOExceptions() throws IOException, InterruptedException, ExecutionException {
|
public void testRandomDirectoryIOExceptions() throws IOException, InterruptedException, ExecutionException {
|
||||||
String mapping = XContentFactory.jsonBuilder().
|
String mapping = XContentFactory.jsonBuilder().
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
|
|
||||||
package org.elasticsearch.search.functionscore;
|
package org.elasticsearch.search.functionscore;
|
||||||
|
|
||||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
|
||||||
import org.elasticsearch.ElasticsearchException;
|
import org.elasticsearch.ElasticsearchException;
|
||||||
import org.elasticsearch.action.index.IndexRequestBuilder;
|
import org.elasticsearch.action.index.IndexRequestBuilder;
|
||||||
import org.elasticsearch.action.search.SearchResponse;
|
import org.elasticsearch.action.search.SearchResponse;
|
||||||
|
@ -61,7 +60,6 @@ import static org.hamcrest.Matchers.equalTo;
|
||||||
import static org.hamcrest.Matchers.greaterThan;
|
import static org.hamcrest.Matchers.greaterThan;
|
||||||
import static org.hamcrest.Matchers.is;
|
import static org.hamcrest.Matchers.is;
|
||||||
|
|
||||||
@Slow
|
|
||||||
public class FunctionScoreIT extends ElasticsearchIntegrationTest {
|
public class FunctionScoreIT extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
static final String TYPE = "type";
|
static final String TYPE = "type";
|
||||||
|
|
|
@ -28,7 +28,10 @@ import org.elasticsearch.test.ElasticsearchIntegrationTest;
|
||||||
import org.hamcrest.CoreMatchers;
|
import org.hamcrest.CoreMatchers;
|
||||||
import org.junit.Ignore;
|
import org.junit.Ignore;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.Arrays;
|
||||||
|
import java.util.Comparator;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
import static com.google.common.collect.Lists.newArrayList;
|
import static com.google.common.collect.Lists.newArrayList;
|
||||||
import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder;
|
import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder;
|
||||||
|
@ -50,7 +53,6 @@ import static org.hamcrest.Matchers.nullValue;
|
||||||
|
|
||||||
public class RandomScoreFunctionIT extends ElasticsearchIntegrationTest {
|
public class RandomScoreFunctionIT extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
@Slow
|
|
||||||
public void testConsistentHitsWithSameSeed() throws Exception {
|
public void testConsistentHitsWithSameSeed() throws Exception {
|
||||||
createIndex("test");
|
createIndex("test");
|
||||||
ensureGreen(); // make sure we are done otherwise preference could change?
|
ensureGreen(); // make sure we are done otherwise preference could change?
|
||||||
|
|
|
@ -388,7 +388,6 @@ public class GeoFilterIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void bulktest() throws Exception {
|
public void bulktest() throws Exception {
|
||||||
byte[] bulkAction = unZipData("/org/elasticsearch/search/geo/gzippedmap.gz");
|
byte[] bulkAction = unZipData("/org/elasticsearch/search/geo/gzippedmap.gz");
|
||||||
|
|
||||||
|
|
|
@ -21,16 +21,20 @@ package org.elasticsearch.search.highlight;
|
||||||
import com.carrotsearch.randomizedtesting.generators.RandomPicks;
|
import com.carrotsearch.randomizedtesting.generators.RandomPicks;
|
||||||
import com.google.common.base.Joiner;
|
import com.google.common.base.Joiner;
|
||||||
import com.google.common.collect.Iterables;
|
import com.google.common.collect.Iterables;
|
||||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
|
||||||
import org.elasticsearch.action.index.IndexRequestBuilder;
|
import org.elasticsearch.action.index.IndexRequestBuilder;
|
||||||
import org.elasticsearch.action.search.SearchRequestBuilder;
|
import org.elasticsearch.action.search.SearchRequestBuilder;
|
||||||
import org.elasticsearch.action.search.SearchResponse;
|
import org.elasticsearch.action.search.SearchResponse;
|
||||||
import org.elasticsearch.common.settings.Settings.Builder;
|
import org.elasticsearch.common.settings.Settings.Builder;
|
||||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||||
import org.elasticsearch.common.xcontent.XContentFactory;
|
import org.elasticsearch.common.xcontent.XContentFactory;
|
||||||
import org.elasticsearch.index.query.*;
|
import org.elasticsearch.index.query.BoostableQueryBuilder;
|
||||||
|
import org.elasticsearch.index.query.IdsQueryBuilder;
|
||||||
|
import org.elasticsearch.index.query.MatchQueryBuilder;
|
||||||
import org.elasticsearch.index.query.MatchQueryBuilder.Operator;
|
import org.elasticsearch.index.query.MatchQueryBuilder.Operator;
|
||||||
import org.elasticsearch.index.query.MatchQueryBuilder.Type;
|
import org.elasticsearch.index.query.MatchQueryBuilder.Type;
|
||||||
|
import org.elasticsearch.index.query.MultiMatchQueryBuilder;
|
||||||
|
import org.elasticsearch.index.query.QueryBuilder;
|
||||||
|
import org.elasticsearch.index.query.QueryBuilders;
|
||||||
import org.elasticsearch.rest.RestStatus;
|
import org.elasticsearch.rest.RestStatus;
|
||||||
import org.elasticsearch.search.SearchHit;
|
import org.elasticsearch.search.SearchHit;
|
||||||
import org.elasticsearch.search.builder.SearchSourceBuilder;
|
import org.elasticsearch.search.builder.SearchSourceBuilder;
|
||||||
|
@ -47,15 +51,40 @@ import java.util.Map;
|
||||||
import static org.elasticsearch.client.Requests.searchRequest;
|
import static org.elasticsearch.client.Requests.searchRequest;
|
||||||
import static org.elasticsearch.common.settings.Settings.settingsBuilder;
|
import static org.elasticsearch.common.settings.Settings.settingsBuilder;
|
||||||
import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder;
|
import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder;
|
||||||
import static org.elasticsearch.index.query.QueryBuilders.*;
|
import static org.elasticsearch.index.query.QueryBuilders.boolQuery;
|
||||||
|
import static org.elasticsearch.index.query.QueryBuilders.boostingQuery;
|
||||||
|
import static org.elasticsearch.index.query.QueryBuilders.commonTermsQuery;
|
||||||
|
import static org.elasticsearch.index.query.QueryBuilders.constantScoreQuery;
|
||||||
|
import static org.elasticsearch.index.query.QueryBuilders.filteredQuery;
|
||||||
|
import static org.elasticsearch.index.query.QueryBuilders.fuzzyQuery;
|
||||||
|
import static org.elasticsearch.index.query.QueryBuilders.matchPhrasePrefixQuery;
|
||||||
|
import static org.elasticsearch.index.query.QueryBuilders.matchPhraseQuery;
|
||||||
|
import static org.elasticsearch.index.query.QueryBuilders.matchQuery;
|
||||||
|
import static org.elasticsearch.index.query.QueryBuilders.missingQuery;
|
||||||
|
import static org.elasticsearch.index.query.QueryBuilders.multiMatchQuery;
|
||||||
|
import static org.elasticsearch.index.query.QueryBuilders.prefixQuery;
|
||||||
|
import static org.elasticsearch.index.query.QueryBuilders.queryStringQuery;
|
||||||
|
import static org.elasticsearch.index.query.QueryBuilders.rangeQuery;
|
||||||
|
import static org.elasticsearch.index.query.QueryBuilders.regexpQuery;
|
||||||
|
import static org.elasticsearch.index.query.QueryBuilders.termQuery;
|
||||||
|
import static org.elasticsearch.index.query.QueryBuilders.typeQuery;
|
||||||
|
import static org.elasticsearch.index.query.QueryBuilders.wildcardQuery;
|
||||||
import static org.elasticsearch.search.builder.SearchSourceBuilder.highlight;
|
import static org.elasticsearch.search.builder.SearchSourceBuilder.highlight;
|
||||||
import static org.elasticsearch.search.builder.SearchSourceBuilder.searchSource;
|
import static org.elasticsearch.search.builder.SearchSourceBuilder.searchSource;
|
||||||
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.*;
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertFailures;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertHighlight;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertHitCount;
|
||||||
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertNoFailures;
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertNoFailures;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertNotHighlighted;
|
||||||
import static org.elasticsearch.test.hamcrest.RegexMatcher.matches;
|
import static org.elasticsearch.test.hamcrest.RegexMatcher.matches;
|
||||||
import static org.hamcrest.Matchers.*;
|
import static org.hamcrest.Matchers.anyOf;
|
||||||
|
import static org.hamcrest.Matchers.containsString;
|
||||||
|
import static org.hamcrest.Matchers.equalTo;
|
||||||
|
import static org.hamcrest.Matchers.hasKey;
|
||||||
|
import static org.hamcrest.Matchers.not;
|
||||||
|
import static org.hamcrest.Matchers.startsWith;
|
||||||
|
|
||||||
@Slow
|
|
||||||
public class HighlighterSearchIT extends ElasticsearchIntegrationTest {
|
public class HighlighterSearchIT extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -990,7 +1019,6 @@ public class HighlighterSearchIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testFastVectorHighlighterManyDocs() throws Exception {
|
public void testFastVectorHighlighterManyDocs() throws Exception {
|
||||||
assertAcked(prepareCreate("test").addMapping("type1", type1TermVectorMapping()));
|
assertAcked(prepareCreate("test").addMapping("type1", type1TermVectorMapping()));
|
||||||
ensureGreen();
|
ensureGreen();
|
||||||
|
@ -2498,7 +2526,6 @@ public class HighlighterSearchIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testPostingsHighlighterManyDocs() throws Exception {
|
public void testPostingsHighlighterManyDocs() throws Exception {
|
||||||
assertAcked(prepareCreate("test").addMapping("type1", type1PostingsffsetsMapping()));
|
assertAcked(prepareCreate("test").addMapping("type1", type1PostingsffsetsMapping()));
|
||||||
ensureGreen();
|
ensureGreen();
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
package org.elasticsearch.search.query;
|
package org.elasticsearch.search.query;
|
||||||
|
|
||||||
import org.apache.lucene.util.English;
|
import org.apache.lucene.util.English;
|
||||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
|
||||||
import org.elasticsearch.ElasticsearchException;
|
import org.elasticsearch.ElasticsearchException;
|
||||||
import org.elasticsearch.Version;
|
import org.elasticsearch.Version;
|
||||||
import org.elasticsearch.action.admin.indices.create.CreateIndexRequestBuilder;
|
import org.elasticsearch.action.admin.indices.create.CreateIndexRequestBuilder;
|
||||||
|
@ -33,9 +32,15 @@ import org.elasticsearch.cluster.metadata.IndexMetaData;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
import org.elasticsearch.common.xcontent.XContentFactory;
|
import org.elasticsearch.common.xcontent.XContentFactory;
|
||||||
import org.elasticsearch.index.mapper.MapperParsingException;
|
import org.elasticsearch.index.mapper.MapperParsingException;
|
||||||
import org.elasticsearch.index.query.*;
|
import org.elasticsearch.index.query.BoolQueryBuilder;
|
||||||
import org.elasticsearch.index.query.CommonTermsQueryBuilder.Operator;
|
import org.elasticsearch.index.query.CommonTermsQueryBuilder.Operator;
|
||||||
|
import org.elasticsearch.index.query.MatchQueryBuilder;
|
||||||
import org.elasticsearch.index.query.MatchQueryBuilder.Type;
|
import org.elasticsearch.index.query.MatchQueryBuilder.Type;
|
||||||
|
import org.elasticsearch.index.query.MultiMatchQueryBuilder;
|
||||||
|
import org.elasticsearch.index.query.QueryBuilders;
|
||||||
|
import org.elasticsearch.index.query.QueryStringQueryBuilder;
|
||||||
|
import org.elasticsearch.index.query.TermQueryBuilder;
|
||||||
|
import org.elasticsearch.index.query.WrapperQueryBuilder;
|
||||||
import org.elasticsearch.rest.RestStatus;
|
import org.elasticsearch.rest.RestStatus;
|
||||||
import org.elasticsearch.script.Script;
|
import org.elasticsearch.script.Script;
|
||||||
import org.elasticsearch.search.SearchHit;
|
import org.elasticsearch.search.SearchHit;
|
||||||
|
@ -59,10 +64,25 @@ import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder;
|
||||||
import static org.elasticsearch.index.query.QueryBuilders.*;
|
import static org.elasticsearch.index.query.QueryBuilders.*;
|
||||||
import static org.elasticsearch.index.query.functionscore.ScoreFunctionBuilders.scriptFunction;
|
import static org.elasticsearch.index.query.functionscore.ScoreFunctionBuilders.scriptFunction;
|
||||||
import static org.elasticsearch.test.VersionUtils.randomVersion;
|
import static org.elasticsearch.test.VersionUtils.randomVersion;
|
||||||
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.*;
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
||||||
import static org.hamcrest.Matchers.*;
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertFailures;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertFirstHit;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertHitCount;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertNoFailures;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertSearchHit;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertSearchHits;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertSearchResponse;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertSecondHit;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertThirdHit;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.hasId;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.hasScore;
|
||||||
|
import static org.hamcrest.Matchers.allOf;
|
||||||
|
import static org.hamcrest.Matchers.closeTo;
|
||||||
|
import static org.hamcrest.Matchers.containsString;
|
||||||
|
import static org.hamcrest.Matchers.equalTo;
|
||||||
|
import static org.hamcrest.Matchers.greaterThan;
|
||||||
|
import static org.hamcrest.Matchers.is;
|
||||||
|
|
||||||
@Slow
|
|
||||||
public class SearchQueryIT extends ElasticsearchIntegrationTest {
|
public class SearchQueryIT extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -582,7 +582,7 @@ public class QueryRescorerIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test @Slow
|
@Test
|
||||||
public void testScoring() throws Exception {
|
public void testScoring() throws Exception {
|
||||||
int numDocs = indexRandomNumbers("keyword");
|
int numDocs = indexRandomNumbers("keyword");
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
package org.elasticsearch.search.scan;
|
package org.elasticsearch.search.scan;
|
||||||
|
|
||||||
import com.google.common.collect.Sets;
|
import com.google.common.collect.Sets;
|
||||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
|
||||||
import org.elasticsearch.action.index.IndexRequestBuilder;
|
import org.elasticsearch.action.index.IndexRequestBuilder;
|
||||||
import org.elasticsearch.action.search.SearchResponse;
|
import org.elasticsearch.action.search.SearchResponse;
|
||||||
import org.elasticsearch.action.search.SearchType;
|
import org.elasticsearch.action.search.SearchType;
|
||||||
|
@ -38,7 +37,6 @@ import static org.hamcrest.Matchers.equalTo;
|
||||||
public class SearchScanIT extends ElasticsearchIntegrationTest {
|
public class SearchScanIT extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testNarrowingQuery() throws Exception {
|
public void testNarrowingQuery() throws Exception {
|
||||||
createIndex("test");
|
createIndex("test");
|
||||||
ensureGreen();
|
ensureGreen();
|
||||||
|
|
|
@ -1023,7 +1023,7 @@ public class SimpleSortIT extends ElasticsearchIntegrationTest {
|
||||||
assertThat(searchResponse.getHits().getAt(2).id(), equalTo("3"));
|
assertThat(searchResponse.getHits().getAt(2).id(), equalTo("3"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test @Slow
|
@Test
|
||||||
public void testSortMissingStrings() throws IOException {
|
public void testSortMissingStrings() throws IOException {
|
||||||
assertAcked(prepareCreate("test").addMapping("type1",
|
assertAcked(prepareCreate("test").addMapping("type1",
|
||||||
XContentFactory.jsonBuilder()
|
XContentFactory.jsonBuilder()
|
||||||
|
|
|
@ -470,7 +470,6 @@ public class SuggestSearchIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
@Nightly
|
@Nightly
|
||||||
public void testMarvelHerosPhraseSuggest() throws IOException {
|
public void testMarvelHerosPhraseSuggest() throws IOException {
|
||||||
CreateIndexRequestBuilder builder = prepareCreate("test").setSettings(settingsBuilder()
|
CreateIndexRequestBuilder builder = prepareCreate("test").setSettings(settingsBuilder()
|
||||||
|
|
|
@ -23,7 +23,6 @@ import com.google.common.base.Predicate;
|
||||||
import com.google.common.collect.ImmutableList;
|
import com.google.common.collect.ImmutableList;
|
||||||
import com.google.common.collect.ImmutableMap;
|
import com.google.common.collect.ImmutableMap;
|
||||||
import org.apache.lucene.util.IOUtils;
|
import org.apache.lucene.util.IOUtils;
|
||||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
|
||||||
import org.elasticsearch.ExceptionsHelper;
|
import org.elasticsearch.ExceptionsHelper;
|
||||||
import org.elasticsearch.Version;
|
import org.elasticsearch.Version;
|
||||||
import org.elasticsearch.action.ListenableActionFuture;
|
import org.elasticsearch.action.ListenableActionFuture;
|
||||||
|
@ -32,7 +31,11 @@ import org.elasticsearch.action.admin.cluster.snapshots.create.CreateSnapshotRes
|
||||||
import org.elasticsearch.action.admin.cluster.snapshots.delete.DeleteSnapshotResponse;
|
import org.elasticsearch.action.admin.cluster.snapshots.delete.DeleteSnapshotResponse;
|
||||||
import org.elasticsearch.action.admin.cluster.snapshots.get.GetSnapshotsResponse;
|
import org.elasticsearch.action.admin.cluster.snapshots.get.GetSnapshotsResponse;
|
||||||
import org.elasticsearch.action.admin.cluster.snapshots.restore.RestoreSnapshotResponse;
|
import org.elasticsearch.action.admin.cluster.snapshots.restore.RestoreSnapshotResponse;
|
||||||
import org.elasticsearch.action.admin.cluster.snapshots.status.*;
|
import org.elasticsearch.action.admin.cluster.snapshots.status.SnapshotIndexShardStage;
|
||||||
|
import org.elasticsearch.action.admin.cluster.snapshots.status.SnapshotIndexShardStatus;
|
||||||
|
import org.elasticsearch.action.admin.cluster.snapshots.status.SnapshotIndexStatus;
|
||||||
|
import org.elasticsearch.action.admin.cluster.snapshots.status.SnapshotStatus;
|
||||||
|
import org.elasticsearch.action.admin.cluster.snapshots.status.SnapshotsStatusResponse;
|
||||||
import org.elasticsearch.action.admin.cluster.state.ClusterStateResponse;
|
import org.elasticsearch.action.admin.cluster.state.ClusterStateResponse;
|
||||||
import org.elasticsearch.action.admin.indices.flush.FlushResponse;
|
import org.elasticsearch.action.admin.indices.flush.FlushResponse;
|
||||||
import org.elasticsearch.action.admin.indices.settings.get.GetSettingsResponse;
|
import org.elasticsearch.action.admin.indices.settings.get.GetSettingsResponse;
|
||||||
|
@ -40,11 +43,17 @@ import org.elasticsearch.action.admin.indices.template.get.GetIndexTemplatesResp
|
||||||
import org.elasticsearch.action.count.CountResponse;
|
import org.elasticsearch.action.count.CountResponse;
|
||||||
import org.elasticsearch.action.index.IndexRequestBuilder;
|
import org.elasticsearch.action.index.IndexRequestBuilder;
|
||||||
import org.elasticsearch.client.Client;
|
import org.elasticsearch.client.Client;
|
||||||
import org.elasticsearch.cluster.*;
|
import org.elasticsearch.cluster.ClusterService;
|
||||||
import org.elasticsearch.cluster.metadata.*;
|
import org.elasticsearch.cluster.ClusterState;
|
||||||
|
import org.elasticsearch.cluster.ProcessedClusterStateUpdateTask;
|
||||||
|
import org.elasticsearch.cluster.SnapshotsInProgress;
|
||||||
import org.elasticsearch.cluster.SnapshotsInProgress.Entry;
|
import org.elasticsearch.cluster.SnapshotsInProgress.Entry;
|
||||||
import org.elasticsearch.cluster.SnapshotsInProgress.ShardSnapshotStatus;
|
import org.elasticsearch.cluster.SnapshotsInProgress.ShardSnapshotStatus;
|
||||||
import org.elasticsearch.cluster.SnapshotsInProgress.State;
|
import org.elasticsearch.cluster.SnapshotsInProgress.State;
|
||||||
|
import org.elasticsearch.cluster.metadata.IndexMetaData;
|
||||||
|
import org.elasticsearch.cluster.metadata.MappingMetaData;
|
||||||
|
import org.elasticsearch.cluster.metadata.MetaDataIndexStateService;
|
||||||
|
import org.elasticsearch.cluster.metadata.SnapshotId;
|
||||||
import org.elasticsearch.cluster.routing.allocation.decider.FilterAllocationDecider;
|
import org.elasticsearch.cluster.routing.allocation.decider.FilterAllocationDecider;
|
||||||
import org.elasticsearch.common.Priority;
|
import org.elasticsearch.common.Priority;
|
||||||
import org.elasticsearch.common.collect.ImmutableOpenMap;
|
import org.elasticsearch.common.collect.ImmutableOpenMap;
|
||||||
|
@ -76,10 +85,25 @@ import static org.elasticsearch.cluster.metadata.IndexMetaData.SETTING_NUMBER_OF
|
||||||
import static org.elasticsearch.common.settings.Settings.settingsBuilder;
|
import static org.elasticsearch.common.settings.Settings.settingsBuilder;
|
||||||
import static org.elasticsearch.index.query.QueryBuilders.matchQuery;
|
import static org.elasticsearch.index.query.QueryBuilders.matchQuery;
|
||||||
import static org.elasticsearch.index.shard.IndexShard.INDEX_REFRESH_INTERVAL;
|
import static org.elasticsearch.index.shard.IndexShard.INDEX_REFRESH_INTERVAL;
|
||||||
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.*;
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
|
||||||
import static org.hamcrest.Matchers.*;
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAliasesExist;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAliasesMissing;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAllSuccessful;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertBlocked;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertHitCount;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertIndexTemplateExists;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertIndexTemplateMissing;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertNoFailures;
|
||||||
|
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertThrows;
|
||||||
|
import static org.hamcrest.Matchers.allOf;
|
||||||
|
import static org.hamcrest.Matchers.containsString;
|
||||||
|
import static org.hamcrest.Matchers.equalTo;
|
||||||
|
import static org.hamcrest.Matchers.greaterThan;
|
||||||
|
import static org.hamcrest.Matchers.lessThan;
|
||||||
|
import static org.hamcrest.Matchers.notNullValue;
|
||||||
|
import static org.hamcrest.Matchers.nullValue;
|
||||||
|
import static org.hamcrest.Matchers.startsWith;
|
||||||
|
|
||||||
@Slow
|
|
||||||
public class SharedClusterSnapshotRestoreIT extends AbstractSnapshotIT {
|
public class SharedClusterSnapshotRestoreIT extends AbstractSnapshotIT {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
|
@ -195,25 +195,9 @@ import static org.hamcrest.Matchers.*;
|
||||||
* </p>
|
* </p>
|
||||||
*/
|
*/
|
||||||
@Ignore
|
@Ignore
|
||||||
@ElasticsearchIntegrationTest.Integration
|
|
||||||
@LuceneTestCase.SuppressFileSystems("ExtrasFS") // doesn't work with potential multi data path from test cluster yet
|
@LuceneTestCase.SuppressFileSystems("ExtrasFS") // doesn't work with potential multi data path from test cluster yet
|
||||||
public abstract class ElasticsearchIntegrationTest extends ElasticsearchTestCase {
|
public abstract class ElasticsearchIntegrationTest extends ElasticsearchTestCase {
|
||||||
|
|
||||||
/**
|
|
||||||
* Property that allows to control whether the Integration tests are run (default) or not
|
|
||||||
*/
|
|
||||||
public static final String SYSPROP_INTEGRATION = "tests.integration";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Annotation for integration tests
|
|
||||||
*/
|
|
||||||
@Inherited
|
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
|
||||||
@Target(ElementType.TYPE)
|
|
||||||
@TestGroup(enabled = true, sysProperty = ElasticsearchIntegrationTest.SYSPROP_INTEGRATION)
|
|
||||||
public @interface Integration {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Property that controls whether ThirdParty Integration tests are run (not the default).
|
* Property that controls whether ThirdParty Integration tests are run (not the default).
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
package org.elasticsearch.test.disruption;
|
package org.elasticsearch.test.disruption;
|
||||||
|
|
||||||
|
|
||||||
import org.apache.lucene.util.LuceneTestCase;
|
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
import org.elasticsearch.test.ElasticsearchIntegrationTest;
|
import org.elasticsearch.test.ElasticsearchIntegrationTest;
|
||||||
import org.elasticsearch.test.InternalTestCluster;
|
import org.elasticsearch.test.InternalTestCluster;
|
||||||
|
@ -31,7 +30,6 @@ import org.junit.Test;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
@LuceneTestCase.Slow
|
|
||||||
public class NetworkPartitionIT extends ElasticsearchIntegrationTest {
|
public class NetworkPartitionIT extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -23,9 +23,7 @@ import com.carrotsearch.randomizedtesting.RandomizedTest;
|
||||||
import com.carrotsearch.randomizedtesting.annotations.TestGroup;
|
import com.carrotsearch.randomizedtesting.annotations.TestGroup;
|
||||||
import com.carrotsearch.randomizedtesting.annotations.TimeoutSuite;
|
import com.carrotsearch.randomizedtesting.annotations.TimeoutSuite;
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
|
|
||||||
import org.apache.lucene.util.IOUtils;
|
import org.apache.lucene.util.IOUtils;
|
||||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
|
||||||
import org.apache.lucene.util.LuceneTestCase.SuppressCodecs;
|
import org.apache.lucene.util.LuceneTestCase.SuppressCodecs;
|
||||||
import org.apache.lucene.util.LuceneTestCase.SuppressFsync;
|
import org.apache.lucene.util.LuceneTestCase.SuppressFsync;
|
||||||
import org.apache.lucene.util.TimeUnits;
|
import org.apache.lucene.util.TimeUnits;
|
||||||
|
@ -80,7 +78,6 @@ import java.util.Set;
|
||||||
* Runs the clients test suite against an elasticsearch cluster.
|
* Runs the clients test suite against an elasticsearch cluster.
|
||||||
*/
|
*/
|
||||||
@ElasticsearchRestTestCase.Rest
|
@ElasticsearchRestTestCase.Rest
|
||||||
@Slow
|
|
||||||
@SuppressFsync // we aren't trying to test this here, and it can make the test slow
|
@SuppressFsync // we aren't trying to test this here, and it can make the test slow
|
||||||
@SuppressCodecs("*") // requires custom completion postings format
|
@SuppressCodecs("*") // requires custom completion postings format
|
||||||
@ClusterScope(randomDynamicTemplates = false)
|
@ClusterScope(randomDynamicTemplates = false)
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
|
|
||||||
package org.elasticsearch.transport.netty;
|
package org.elasticsearch.transport.netty;
|
||||||
|
|
||||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
|
||||||
import org.elasticsearch.Version;
|
import org.elasticsearch.Version;
|
||||||
import org.elasticsearch.cluster.node.DiscoveryNode;
|
import org.elasticsearch.cluster.node.DiscoveryNode;
|
||||||
import org.elasticsearch.common.network.NetworkService;
|
import org.elasticsearch.common.network.NetworkService;
|
||||||
|
@ -31,7 +30,6 @@ import org.elasticsearch.transport.AbstractSimpleTransportTests;
|
||||||
import org.elasticsearch.transport.ConnectTransportException;
|
import org.elasticsearch.transport.ConnectTransportException;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
@Slow
|
|
||||||
public class SimpleNettyTransportTests extends AbstractSimpleTransportTests {
|
public class SimpleNettyTransportTests extends AbstractSimpleTransportTests {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -38,7 +38,6 @@ import org.elasticsearch.node.NodeBuilder;
|
||||||
import org.elasticsearch.test.ElasticsearchIntegrationTest;
|
import org.elasticsearch.test.ElasticsearchIntegrationTest;
|
||||||
import org.elasticsearch.test.InternalTestCluster;
|
import org.elasticsearch.test.InternalTestCluster;
|
||||||
import org.elasticsearch.test.TestCluster;
|
import org.elasticsearch.test.TestCluster;
|
||||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
import org.junit.AfterClass;
|
import org.junit.AfterClass;
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
|
@ -57,7 +56,6 @@ import static org.hamcrest.Matchers.notNullValue;
|
||||||
* Note, when talking to tribe client, no need to set the local flag on master read operations, it
|
* Note, when talking to tribe client, no need to set the local flag on master read operations, it
|
||||||
* does it by default.
|
* does it by default.
|
||||||
*/
|
*/
|
||||||
@Slow
|
|
||||||
@LuceneTestCase.SuppressFileSystems("ExtrasFS") // doesn't work with potential multi data path from test cluster yet
|
@LuceneTestCase.SuppressFileSystems("ExtrasFS") // doesn't work with potential multi data path from test cluster yet
|
||||||
public class TribeIT extends ElasticsearchIntegrationTest {
|
public class TribeIT extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
|
|
|
@ -568,7 +568,6 @@ public class UpdateIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testConcurrentUpdateWithRetryOnConflict() throws Exception {
|
public void testConcurrentUpdateWithRetryOnConflict() throws Exception {
|
||||||
final boolean useBulkApi = randomBoolean();
|
final boolean useBulkApi = randomBoolean();
|
||||||
createTestIndex();
|
createTestIndex();
|
||||||
|
@ -627,7 +626,6 @@ public class UpdateIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void stressUpdateDeleteConcurrency() throws Exception {
|
public void stressUpdateDeleteConcurrency() throws Exception {
|
||||||
//We create an index with merging disabled so that deletes don't get merged away
|
//We create an index with merging disabled so that deletes don't get merged away
|
||||||
assertAcked(prepareCreate("test")
|
assertAcked(prepareCreate("test")
|
||||||
|
|
|
@ -537,7 +537,6 @@ public class SimpleVersioningIT extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testRandomIDsAndVersions() throws Exception {
|
public void testRandomIDsAndVersions() throws Exception {
|
||||||
createIndex("test");
|
createIndex("test");
|
||||||
ensureGreen();
|
ensureGreen();
|
||||||
|
@ -757,7 +756,6 @@ public class SimpleVersioningIT extends ElasticsearchIntegrationTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Slow
|
|
||||||
public void testDeleteNotLost() throws Exception {
|
public void testDeleteNotLost() throws Exception {
|
||||||
|
|
||||||
// We require only one shard for this test, so that the 2nd delete provokes pruning the deletes map:
|
// We require only one shard for this test, so that the 2nd delete provokes pruning the deletes map:
|
||||||
|
|
|
@ -25,7 +25,6 @@ import org.elasticsearch.cloud.azure.management.AzureComputeServiceSimpleMock;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
import org.elasticsearch.test.ElasticsearchIntegrationTest;
|
import org.elasticsearch.test.ElasticsearchIntegrationTest;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
|
||||||
|
|
||||||
import static org.hamcrest.Matchers.notNullValue;
|
import static org.hamcrest.Matchers.notNullValue;
|
||||||
|
|
||||||
|
@ -33,7 +32,6 @@ import static org.hamcrest.Matchers.notNullValue;
|
||||||
numDataNodes = 0,
|
numDataNodes = 0,
|
||||||
transportClientRatio = 0.0,
|
transportClientRatio = 0.0,
|
||||||
numClientNodes = 0)
|
numClientNodes = 0)
|
||||||
@Slow
|
|
||||||
public class AzureSimpleTest extends AbstractAzureComputeServiceTest {
|
public class AzureSimpleTest extends AbstractAzureComputeServiceTest {
|
||||||
|
|
||||||
public AzureSimpleTest() {
|
public AzureSimpleTest() {
|
||||||
|
|
|
@ -25,7 +25,6 @@ import org.elasticsearch.cloud.azure.management.AzureComputeServiceTwoNodesMock;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
import org.elasticsearch.test.ElasticsearchIntegrationTest;
|
import org.elasticsearch.test.ElasticsearchIntegrationTest;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
|
||||||
|
|
||||||
import static org.hamcrest.Matchers.notNullValue;
|
import static org.hamcrest.Matchers.notNullValue;
|
||||||
|
|
||||||
|
@ -33,7 +32,6 @@ import static org.hamcrest.Matchers.notNullValue;
|
||||||
numDataNodes = 0,
|
numDataNodes = 0,
|
||||||
transportClientRatio = 0.0,
|
transportClientRatio = 0.0,
|
||||||
numClientNodes = 0)
|
numClientNodes = 0)
|
||||||
@Slow
|
|
||||||
public class AzureTwoStartedNodesTest extends AbstractAzureComputeServiceTest {
|
public class AzureTwoStartedNodesTest extends AbstractAzureComputeServiceTest {
|
||||||
|
|
||||||
public AzureTwoStartedNodesTest() {
|
public AzureTwoStartedNodesTest() {
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
|
|
||||||
package org.elasticsearch.plugin.deletebyquery;
|
package org.elasticsearch.plugin.deletebyquery;
|
||||||
|
|
||||||
import org.apache.lucene.util.LuceneTestCase.Slow;
|
|
||||||
import org.elasticsearch.action.ActionRequestValidationException;
|
import org.elasticsearch.action.ActionRequestValidationException;
|
||||||
import org.elasticsearch.action.admin.cluster.node.stats.NodeStats;
|
import org.elasticsearch.action.admin.cluster.node.stats.NodeStats;
|
||||||
import org.elasticsearch.action.admin.cluster.node.stats.NodesStatsResponse;
|
import org.elasticsearch.action.admin.cluster.node.stats.NodesStatsResponse;
|
||||||
|
@ -50,8 +49,6 @@ import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.*;
|
||||||
import static org.hamcrest.Matchers.equalTo;
|
import static org.hamcrest.Matchers.equalTo;
|
||||||
import static org.hamcrest.Matchers.nullValue;
|
import static org.hamcrest.Matchers.nullValue;
|
||||||
|
|
||||||
|
|
||||||
@Slow
|
|
||||||
@ClusterScope(scope = SUITE, transportClientRatio = 0)
|
@ClusterScope(scope = SUITE, transportClientRatio = 0)
|
||||||
public class DeleteByQueryTests extends ElasticsearchIntegrationTest {
|
public class DeleteByQueryTests extends ElasticsearchIntegrationTest {
|
||||||
|
|
||||||
|
|
|
@ -1,60 +0,0 @@
|
||||||
/*
|
|
||||||
* Licensed to Elasticsearch under one or more contributor
|
|
||||||
* license agreements. See the NOTICE file distributed with
|
|
||||||
* this work for additional information regarding copyright
|
|
||||||
* ownership. Elasticsearch licenses this file to you under
|
|
||||||
* the Apache License, Version 2.0 (the "License"); you may
|
|
||||||
* not use this file except in compliance with the License.
|
|
||||||
* You may obtain a copy of the License at
|
|
||||||
*
|
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
*
|
|
||||||
* Unless required by applicable law or agreed to in writing,
|
|
||||||
* software distributed under the License is distributed on an
|
|
||||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
||||||
* KIND, either express or implied. See the License for the
|
|
||||||
* specific language governing permissions and limitations
|
|
||||||
* under the License.
|
|
||||||
*/
|
|
||||||
|
|
||||||
package org.elasticsearch.plugin.deletebyquery.test.rest;
|
|
||||||
|
|
||||||
import com.carrotsearch.randomizedtesting.annotations.Name;
|
|
||||||
import com.carrotsearch.randomizedtesting.annotations.ParametersFactory;
|
|
||||||
|
|
||||||
import org.apache.lucene.util.LuceneTestCase;
|
|
||||||
import org.elasticsearch.common.settings.Settings;
|
|
||||||
import org.elasticsearch.plugin.deletebyquery.DeleteByQueryPlugin;
|
|
||||||
import org.elasticsearch.test.ElasticsearchIntegrationTest.ClusterScope;
|
|
||||||
import org.elasticsearch.test.rest.ElasticsearchRestTestCase;
|
|
||||||
import org.elasticsearch.test.rest.ElasticsearchRestTestCase.Rest;
|
|
||||||
import org.elasticsearch.test.rest.RestTestCandidate;
|
|
||||||
import org.elasticsearch.test.rest.parser.RestTestParseException;
|
|
||||||
import org.junit.Ignore;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
|
|
||||||
import static org.elasticsearch.test.ElasticsearchIntegrationTest.Scope.SUITE;
|
|
||||||
|
|
||||||
|
|
||||||
@Rest
|
|
||||||
@ClusterScope(scope = SUITE, randomDynamicTemplates = false)
|
|
||||||
public class DeleteByQueryRestTests extends ElasticsearchRestTestCase {
|
|
||||||
|
|
||||||
public DeleteByQueryRestTests(@Name("yaml") RestTestCandidate testCandidate) {
|
|
||||||
super(testCandidate);
|
|
||||||
}
|
|
||||||
|
|
||||||
@ParametersFactory
|
|
||||||
public static Iterable<Object[]> parameters() throws IOException, RestTestParseException {
|
|
||||||
return ElasticsearchRestTestCase.createParameters(0, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected Settings nodeSettings(int nodeOrdinal) {
|
|
||||||
Settings.Builder settings = Settings.builder()
|
|
||||||
.put(super.nodeSettings(nodeOrdinal))
|
|
||||||
.put("plugin.types", DeleteByQueryPlugin.class.getName());
|
|
||||||
return settings.build();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue