mark slow tests with @Slow annotation

This commit is contained in:
Robert Muir 2015-04-18 02:22:44 -04:00
parent b27c7f0d2a
commit d2854d7267
108 changed files with 232 additions and 12 deletions

View File

@ -104,6 +104,7 @@ import org.elasticsearch.search.action.SearchServiceTransportAction;
import org.elasticsearch.test.ElasticsearchIntegrationTest;
import org.elasticsearch.threadpool.ThreadPool;
import org.elasticsearch.transport.*;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
@ -117,6 +118,7 @@ import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertNoFa
import static org.hamcrest.Matchers.*;
@ClusterScope(scope = Scope.SUITE, numClientNodes = 1)
@Slow
public class IndicesRequestTests extends ElasticsearchIntegrationTest {
private final List<String> indices = new ArrayList<>();

View File

@ -18,6 +18,7 @@
*/
package org.elasticsearch.action.admin;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.action.admin.cluster.node.hotthreads.NodeHotThreads;
import org.elasticsearch.action.admin.cluster.node.hotthreads.NodesHotThreadsRequestBuilder;
@ -44,6 +45,7 @@ import static org.hamcrest.Matchers.lessThan;
/**
*/
@Slow
public class HotThreadsTest extends ElasticsearchIntegrationTest {
@Test

View File

@ -19,6 +19,7 @@
package org.elasticsearch.action.admin.indices.create;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.ActionRequestValidationException;
import org.elasticsearch.action.admin.cluster.state.ClusterStateResponse;
import org.elasticsearch.cluster.ClusterState;
@ -38,6 +39,7 @@ import static org.hamcrest.Matchers.*;
import static org.hamcrest.core.IsNull.notNullValue;
@ClusterScope(scope = Scope.TEST)
@Slow
public class CreateIndexTests extends ElasticsearchIntegrationTest{
@Test

View File

@ -21,12 +21,15 @@
package org.elasticsearch.action.bulk;
import com.google.common.base.Charsets;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.admin.indices.mapping.get.GetMappingsResponse;
import org.elasticsearch.test.ElasticsearchIntegrationTest;
import org.junit.Test;
import static org.elasticsearch.common.io.Streams.copyToStringFromClasspath;
@Slow
public class BulkIntegrationTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -20,6 +20,8 @@
package org.elasticsearch.action.bulk;
import com.carrotsearch.ant.tasks.junit4.dependencies.com.carrotsearch.randomizedtesting.generators.RandomPicks;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.get.MultiGetItemResponse;
import org.elasticsearch.action.get.MultiGetRequestBuilder;
import org.elasticsearch.action.get.MultiGetResponse;
@ -46,6 +48,7 @@ import java.util.concurrent.atomic.AtomicInteger;
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
import static org.hamcrest.Matchers.*;
@Slow
public class BulkProcessorTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -20,10 +20,12 @@
package org.elasticsearch.action.termvectors;
import com.carrotsearch.hppc.ObjectIntOpenHashMap;
import org.apache.lucene.analysis.payloads.PayloadHelper;
import org.apache.lucene.document.FieldType;
import org.apache.lucene.index.*;
import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.action.ActionFuture;
import org.elasticsearch.action.admin.indices.alias.Alias;
@ -49,6 +51,7 @@ import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcke
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertThrows;
import static org.hamcrest.Matchers.*;
@Slow
public class GetTermVectorsTests extends AbstractTermVectorsTests {
@Test

View File

@ -23,6 +23,7 @@ import org.apache.lucene.index.DirectoryReader;
import org.apache.lucene.index.Fields;
import org.apache.lucene.index.Terms;
import org.apache.lucene.index.TermsEnum;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.admin.indices.alias.Alias;
import org.elasticsearch.common.lucene.uid.Versions;
import org.elasticsearch.common.settings.ImmutableSettings;
@ -33,6 +34,7 @@ import java.io.IOException;
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
import static org.hamcrest.Matchers.*;
@Slow
public class MultiTermVectorsTests extends AbstractTermVectorsTests {
@Test

View File

@ -19,6 +19,7 @@
package org.elasticsearch.aliases;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.ElasticsearchIllegalArgumentException;
import org.elasticsearch.action.ActionRequestValidationException;
import org.elasticsearch.action.admin.indices.alias.Alias;
@ -69,6 +70,7 @@ import static org.hamcrest.Matchers.*;
/**
*
*/
@Slow
public class IndexAliasesTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -19,6 +19,7 @@
package org.elasticsearch.blocks;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.admin.indices.create.CreateIndexResponse;
import org.elasticsearch.action.admin.indices.exists.indices.IndicesExistsResponse;
import org.elasticsearch.action.admin.indices.settings.put.UpdateSettingsRequestBuilder;
@ -38,6 +39,7 @@ import static org.elasticsearch.common.settings.ImmutableSettings.settingsBuilde
import static org.hamcrest.Matchers.notNullValue;
@ElasticsearchIntegrationTest.ClusterScope(scope = ElasticsearchIntegrationTest.Scope.TEST)
@Slow
public class SimpleBlocksTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -71,9 +71,9 @@ import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcke
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
@LuceneTestCase.SuppressCodecs({"Lucene3x", "MockFixedIntBlock", "MockVariableIntBlock", "MockSep", "MockRandom", "Lucene40", "Lucene41", "Appending", "Lucene42", "Lucene45", "Lucene46", "Lucene49"})
@ElasticsearchIntegrationTest.ClusterScope(scope = ElasticsearchIntegrationTest.Scope.TEST, numDataNodes = 0)
@LuceneTestCase.SuppressFileSystems("ExtrasFS")
@LuceneTestCase.Slow
public class OldIndexBackwardsCompatibilityTests extends ElasticsearchIntegrationTest {
// TODO: test for proper exception on unsupported indexes (maybe via separate test?)
// We have a 0.20.6.zip etc for this.

View File

@ -18,6 +18,7 @@
*/
package org.elasticsearch.cluster;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.admin.cluster.settings.ClusterUpdateSettingsResponse;
import org.elasticsearch.action.admin.cluster.state.ClusterStateResponse;
import org.elasticsearch.action.admin.indices.alias.Alias;
@ -37,6 +38,7 @@ import static org.hamcrest.Matchers.*;
* Scoped as test, because the if the test with cluster read only block fails, all other tests fail as well, as this is not cleaned up properly
*/
@ClusterScope(scope= Scope.TEST)
@Slow
public class BlockClusterStatsTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -19,6 +19,7 @@
package org.elasticsearch.cluster;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse;
import org.elasticsearch.action.admin.cluster.health.ClusterHealthStatus;
import org.elasticsearch.common.Priority;
@ -27,6 +28,7 @@ import org.junit.Test;
import static org.hamcrest.Matchers.equalTo;
@Slow
public class ClusterHealthTests extends ElasticsearchIntegrationTest {

View File

@ -20,6 +20,8 @@ package org.elasticsearch.cluster;
import com.google.common.base.Predicate;
import com.google.common.util.concurrent.ListenableFuture;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse;
import org.elasticsearch.action.admin.cluster.tasks.PendingClusterTasksResponse;
@ -53,6 +55,7 @@ import static org.hamcrest.Matchers.*;
*
*/
@ClusterScope(scope = Scope.TEST, numDataNodes = 0)
@Slow
public class ClusterServiceTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -20,6 +20,8 @@
package org.elasticsearch.cluster;
import com.google.common.base.Predicate;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse;
import org.elasticsearch.action.admin.cluster.health.ClusterHealthStatus;
import org.elasticsearch.client.Client;
@ -47,6 +49,7 @@ import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertThro
import static org.hamcrest.Matchers.*;
@ClusterScope(scope = Scope.TEST, numDataNodes = 0)
@Slow
public class MinimumMasterNodesTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -19,6 +19,7 @@
package org.elasticsearch.cluster;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.admin.cluster.state.ClusterStateResponse;
import org.elasticsearch.action.admin.indices.template.get.GetIndexTemplatesResponse;
import org.elasticsearch.action.support.IndicesOptions;
@ -44,6 +45,7 @@ import static org.hamcrest.Matchers.*;
* Checking simple filtering capabilites of the cluster state
*
*/
@Slow
public class SimpleClusterStateTests extends ElasticsearchIntegrationTest {
@Before

View File

@ -37,6 +37,7 @@ import static org.hamcrest.Matchers.*;
*
*/
@ClusterScope(scope = Scope.TEST, numDataNodes = 0)
@Slow
public class SpecificMasterNodesTests extends ElasticsearchIntegrationTest {
protected final ImmutableSettings.Builder settingsBuilder() {

View File

@ -19,6 +19,7 @@
package org.elasticsearch.cluster.routing.allocation;
import org.apache.lucene.util.TestUtil;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.Version;
import org.elasticsearch.cluster.ClusterState;
import org.elasticsearch.cluster.metadata.IndexMetaData;
@ -40,6 +41,7 @@ import static org.elasticsearch.common.settings.ImmutableSettings.settingsBuilde
/**
* see issue #9023
*/
@Slow
public class BalanceUnbalancedClusterTest extends CatAllocationTestBase {
@Override

View File

@ -19,6 +19,7 @@
package org.elasticsearch.cluster.settings;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.admin.cluster.settings.ClusterUpdateSettingsResponse;
import org.elasticsearch.cluster.routing.allocation.decider.DisableAllocationDecider;
import org.elasticsearch.common.settings.ImmutableSettings;
@ -34,6 +35,7 @@ import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcke
import static org.hamcrest.Matchers.*;
@ClusterScope(scope = TEST)
@Slow
public class ClusterSettingsTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -20,6 +20,7 @@
package org.elasticsearch.codecs;
import org.apache.lucene.codecs.Codec;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.Version;
import org.elasticsearch.cluster.metadata.IndexMetaData;
import org.elasticsearch.common.settings.ImmutableSettings;
@ -36,6 +37,7 @@ import static org.hamcrest.Matchers.containsString;
/**
*/
@Slow
public class CodecTests extends ElasticsearchSingleNodeTest {
public void testAcceptPostingsFormat() throws IOException {

View File

@ -19,6 +19,7 @@
package org.elasticsearch.count.query;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.Version;
import org.elasticsearch.action.ShardOperationFailedException;
@ -47,6 +48,7 @@ import static org.elasticsearch.index.query.QueryBuilders.*;
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.*;
import static org.hamcrest.Matchers.*;
@Slow
public class CountQueryTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -19,6 +19,7 @@
package org.elasticsearch.count.simple;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.count.CountResponse;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.common.xcontent.XContentFactory;
@ -38,6 +39,7 @@ import static org.elasticsearch.index.query.QueryBuilders.rangeQuery;
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertHitCount;
@Slow
public class SimpleCountTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -19,6 +19,7 @@
package org.elasticsearch.deleteByQuery;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.ActionWriteResponse;
import org.elasticsearch.action.admin.indices.alias.Alias;
import org.elasticsearch.action.deletebyquery.DeleteByQueryRequestBuilder;
@ -38,6 +39,7 @@ import java.util.concurrent.ExecutionException;
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.*;
import static org.hamcrest.Matchers.*;
@Slow
public class DeleteByQueryTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -19,6 +19,7 @@
package org.elasticsearch.discovery;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.cluster.ClusterState;
import org.elasticsearch.cluster.node.DiscoveryNode;
import org.elasticsearch.common.settings.ImmutableSettings;
@ -36,6 +37,7 @@ import java.util.concurrent.ExecutionException;
import static org.hamcrest.Matchers.equalTo;
@ClusterScope(scope = Scope.TEST, numDataNodes = 0)
@Slow
public class ZenUnicastDiscoveryTests extends ElasticsearchIntegrationTest {
private ClusterDiscoveryConfiguration discoveryConfig;

View File

@ -19,6 +19,7 @@
package org.elasticsearch.discovery.zen;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.ExceptionsHelper;
import org.elasticsearch.Version;
import org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse;
@ -59,6 +60,7 @@ import static org.hamcrest.Matchers.*;
/**
*/
@ElasticsearchIntegrationTest.ClusterScope(scope = ElasticsearchIntegrationTest.Scope.TEST, numDataNodes = 0, numClientNodes = 0)
@Slow
public class ZenDiscoveryTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -37,6 +37,7 @@ import org.elasticsearch.test.ElasticsearchTestCase;
import org.elasticsearch.threadpool.ThreadPool;
import org.elasticsearch.transport.TransportService;
import org.elasticsearch.transport.netty.NettyTransport;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.junit.Test;
import static org.hamcrest.Matchers.equalTo;
@ -44,6 +45,7 @@ import static org.hamcrest.Matchers.equalTo;
/**
*
*/
@Slow
public class UnicastZenPingTests extends ElasticsearchTestCase {
@Test

View File

@ -21,6 +21,7 @@ package org.elasticsearch.document;
import com.google.common.base.Charsets;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.Version;
import org.elasticsearch.action.admin.indices.alias.Alias;
import org.elasticsearch.action.bulk.BulkItemResponse;
@ -60,6 +61,7 @@ import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.nullValue;
@Slow
public class BulkTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -19,6 +19,7 @@
package org.elasticsearch.document;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.ActionWriteResponse;
import org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse;
import org.elasticsearch.action.admin.indices.recovery.RecoveryResponse;
@ -41,6 +42,7 @@ import static org.hamcrest.Matchers.*;
/**
*/
@Slow
public class ShardInfoTests extends ElasticsearchIntegrationTest {
private int numCopies;

View File

@ -19,6 +19,7 @@
package org.elasticsearch.exists;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.exists.ExistsResponse;
import org.elasticsearch.common.xcontent.XContentFactory;
import org.elasticsearch.index.query.QueryBuilders;
@ -29,6 +30,7 @@ import static org.elasticsearch.index.query.QueryBuilders.boolQuery;
import static org.elasticsearch.index.query.QueryBuilders.rangeQuery;
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertExists;
@Slow
public class SimpleExistsTests extends ElasticsearchIntegrationTest {

View File

@ -20,6 +20,8 @@
package org.elasticsearch.gateway;
import com.google.common.collect.ImmutableSet;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.client.Client;
import org.elasticsearch.cluster.block.ClusterBlock;
import org.elasticsearch.cluster.block.ClusterBlockLevel;
@ -39,6 +41,7 @@ import static org.hamcrest.Matchers.hasItem;
*
*/
@ClusterScope(scope = Scope.TEST, numDataNodes = 0)
@Slow
public class RecoverAfterNodesTests extends ElasticsearchIntegrationTest {
private final static TimeValue BLOCK_WAIT_TIMEOUT = TimeValue.timeValueSeconds(10);

View File

@ -19,6 +19,7 @@
package org.elasticsearch.get;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.ElasticsearchIllegalArgumentException;
import org.elasticsearch.action.ShardOperationFailedException;
@ -46,6 +47,7 @@ import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder;
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
import static org.hamcrest.Matchers.*;
@Slow
public class GetActionTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -20,6 +20,7 @@
package org.elasticsearch.index;
import org.apache.lucene.util.LuceneTestCase;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.admin.cluster.snapshots.create.CreateSnapshotResponse;
import org.elasticsearch.action.admin.cluster.snapshots.restore.RestoreSnapshotResponse;
import org.elasticsearch.action.admin.cluster.state.ClusterStateResponse;
@ -55,6 +56,7 @@ import static org.hamcrest.Matchers.*;
*/
@ElasticsearchIntegrationTest.ClusterScope(scope = ElasticsearchIntegrationTest.Scope.TEST, numDataNodes = 0)
@LuceneTestCase.SuppressFileSystems("ExtrasFS")
@Slow
public class IndexWithShadowReplicasTests extends ElasticsearchIntegrationTest {
/**

View File

@ -19,11 +19,13 @@
package org.elasticsearch.index.fielddata;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.common.settings.ImmutableSettings;
import org.elasticsearch.index.fielddata.ordinals.OrdinalsBuilder;
/**
*/
@Slow
public class FSTPackedBytesStringFieldDataTests extends AbstractStringFieldDataTests {
@Override

View File

@ -19,6 +19,7 @@
package org.elasticsearch.index.fielddata;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.admin.cluster.stats.ClusterStatsResponse;
import org.elasticsearch.test.ElasticsearchIntegrationTest;
import org.junit.Test;
@ -29,6 +30,7 @@ import static org.hamcrest.Matchers.greaterThan;
/**
*/
@Slow
public class FieldDataLoadingTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -21,6 +21,7 @@ package org.elasticsearch.index.fielddata;
import org.apache.lucene.index.LeafReaderContext;
import org.apache.lucene.index.IndexReader;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.index.Index;
import org.elasticsearch.index.fielddata.IndexFieldData.XFieldComparatorSource.Nested;
import org.elasticsearch.index.fielddata.fieldcomparator.BytesRefFieldComparatorSource;
@ -30,6 +31,7 @@ import org.junit.Test;
/** Returns an implementation based on paged bytes which doesn't implement WithOrdinals in order to visit different paths in the code,
* eg. BytesRefFieldComparatorSource makes decisions based on whether the field data implements WithOrdinals. */
@Slow
public class NoOrdinalsStringFieldDataTests extends PagedBytesStringFieldDataTests {
public static IndexFieldData<AtomicFieldData> hideOrdinals(final IndexFieldData<?> in) {

View File

@ -19,6 +19,7 @@
package org.elasticsearch.index.mapper.externalvalues;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.common.geo.ShapeRelation;
import org.elasticsearch.common.geo.builders.ShapeBuilder;
@ -35,6 +36,7 @@ import static org.hamcrest.Matchers.equalTo;
/**
*/
@ElasticsearchIntegrationTest.ClusterScope(scope = ElasticsearchIntegrationTest.Scope.SUITE)
@Slow
public class ExternalValuesMapperIntegrationTests extends ElasticsearchIntegrationTest {
@Override

View File

@ -20,6 +20,7 @@
package org.elasticsearch.index.mapper.update;
import org.apache.lucene.util.LuceneTestCase;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.admin.indices.mapping.get.GetMappingsResponse;
import org.elasticsearch.action.admin.indices.mapping.put.PutMappingResponse;
import org.elasticsearch.client.Client;
@ -40,7 +41,7 @@ import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcke
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.equalTo;
@Slow
public class UpdateMappingOnClusterTests extends ElasticsearchIntegrationTest {
private static final String INDEX = "index";

View File

@ -21,6 +21,7 @@ package org.elasticsearch.index.query;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import org.apache.lucene.analysis.core.WhitespaceAnalyzer;
import org.apache.lucene.index.*;
import org.apache.lucene.index.memory.MemoryIndex;
@ -32,6 +33,7 @@ import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.BytesRefBuilder;
import org.apache.lucene.util.CharsRefBuilder;
import org.apache.lucene.util.NumericUtils;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.apache.lucene.util.automaton.TooComplexToDeterminizeException;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.ElasticsearchIllegalArgumentException;
@ -85,6 +87,7 @@ import static org.hamcrest.Matchers.*;
/**
*
*/
@Slow
public class SimpleIndexQueryParserTests extends ElasticsearchSingleNodeTest {
private IndexQueryParserService queryParser;

View File

@ -19,6 +19,8 @@
package org.elasticsearch.index.query;
import com.google.common.collect.Maps;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.action.indexedscripts.delete.DeleteIndexedScriptResponse;
import org.elasticsearch.action.indexedscripts.get.GetIndexedScriptResponse;
@ -51,6 +53,7 @@ import static org.hamcrest.Matchers.is;
* Full integration test of the template query plugin.
*/
@ElasticsearchIntegrationTest.ClusterScope(scope = ElasticsearchIntegrationTest.Scope.SUITE)
@Slow
public class TemplateQueryTest extends ElasticsearchIntegrationTest {
@Before

View File

@ -18,6 +18,7 @@
*/
package org.elasticsearch.indexing;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.bulk.BulkResponse;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.action.index.IndexResponse;
@ -43,6 +44,7 @@ import static org.hamcrest.Matchers.lessThanOrEqualTo;
/**
*
*/
@Slow
public class IndexActionTests extends ElasticsearchIntegrationTest {
/**

View File

@ -18,6 +18,7 @@
*/
package org.elasticsearch.indices;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.ElasticsearchIllegalArgumentException;
import org.elasticsearch.action.ActionRequestBuilder;
import org.elasticsearch.action.admin.cluster.repositories.put.PutRepositoryResponse;
@ -65,6 +66,7 @@ import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcke
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertHitCount;
import static org.hamcrest.Matchers.*;
@Slow
public class IndicesOptionsIntegrationTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -21,6 +21,8 @@ package org.elasticsearch.indices.mapping;
import com.google.common.collect.Sets;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.action.index.IndexResponse;
@ -45,6 +47,7 @@ import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertHitC
import static org.hamcrest.Matchers.emptyIterable;
@ElasticsearchIntegrationTest.ClusterScope(randomDynamicTemplates = false) // this test takes a long time to delete the idx if all fields are eager loading
@Slow
public class ConcurrentDynamicTemplateTests extends ElasticsearchIntegrationTest {
private final String mappingType = "test-mapping";

View File

@ -20,6 +20,8 @@
package org.elasticsearch.indices.mapping;
import com.google.common.collect.Lists;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.admin.indices.mapping.get.GetMappingsResponse;
import org.elasticsearch.action.admin.indices.mapping.put.PutMappingResponse;
import org.elasticsearch.action.admin.indices.refresh.RefreshResponse;
@ -52,6 +54,7 @@ import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertThro
import static org.hamcrest.Matchers.*;
@ClusterScope(randomDynamicTemplates = false)
@Slow
public class UpdateMappingTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -19,6 +19,7 @@
package org.elasticsearch.indices.settings;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse;
import org.elasticsearch.action.admin.cluster.health.ClusterHealthStatus;
import org.elasticsearch.action.count.CountResponse;
@ -35,6 +36,7 @@ import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcke
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertHitCount;
import static org.hamcrest.Matchers.equalTo;
@Slow
public class UpdateNumberOfReplicasTests extends ElasticsearchIntegrationTest {
@Override

View File

@ -19,6 +19,7 @@
package org.elasticsearch.indices.state;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.ActionRequestValidationException;
import org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse;
import org.elasticsearch.action.admin.cluster.state.ClusterStateResponse;
@ -48,6 +49,7 @@ import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertNoFa
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.notNullValue;
@Slow
public class OpenCloseIndexTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -20,7 +20,7 @@
package org.elasticsearch.indices.store;
import com.google.common.base.Predicate;
import org.apache.lucene.util.LuceneTestCase;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse;
import org.elasticsearch.action.admin.cluster.state.ClusterStateResponse;
import org.elasticsearch.cluster.ClusterService;
@ -57,6 +57,7 @@ import static org.hamcrest.Matchers.equalTo;
*
*/
@ClusterScope(scope = Scope.TEST, numDataNodes = 0)
@Slow
public class IndicesStoreIntegrationTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -20,6 +20,7 @@
package org.elasticsearch.indices.store;
import org.apache.lucene.store.Directory;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.env.NodeEnvironment;
import org.elasticsearch.index.shard.IndexShard;
import org.elasticsearch.index.store.IndexStoreModule;
@ -38,6 +39,7 @@ import static org.hamcrest.Matchers.*;
/**
*
*/
@Slow
public class SimpleDistributorTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -20,6 +20,7 @@
package org.elasticsearch.mlt;
import org.apache.lucene.util.ArrayUtil;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.admin.cluster.health.ClusterHealthStatus;
import org.elasticsearch.action.admin.indices.create.CreateIndexRequestBuilder;
import org.elasticsearch.action.index.IndexRequestBuilder;
@ -58,6 +59,7 @@ import static org.hamcrest.Matchers.notNullValue;
/**
*
*/
@Slow
public class MoreLikeThisActionTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -19,6 +19,7 @@
package org.elasticsearch.operateAllIndices;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.ElasticsearchIllegalArgumentException;
import org.elasticsearch.action.support.DestructiveOperations;
import org.elasticsearch.common.settings.ImmutableSettings;
@ -33,6 +34,7 @@ import static org.hamcrest.Matchers.equalTo;
/**
*/
@ElasticsearchIntegrationTest.ClusterScope(scope = ElasticsearchIntegrationTest.Scope.TEST)
@Slow
public class DestructiveOperationsIntegrationTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -18,6 +18,7 @@
*/
package org.elasticsearch.percolator;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.delete.DeleteResponse;
import org.elasticsearch.action.index.IndexResponse;
import org.elasticsearch.action.percolate.PercolateResponse;
@ -47,6 +48,7 @@ import static org.hamcrest.Matchers.*;
/**
*
*/
@Slow
public class ConcurrentPercolatorTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -18,6 +18,7 @@
*/
package org.elasticsearch.percolator;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.percolate.PercolateRequestBuilder;
import org.elasticsearch.action.percolate.PercolateResponse;
import org.elasticsearch.index.query.QueryBuilder;
@ -44,6 +45,7 @@ import static org.hamcrest.Matchers.equalTo;
/**
*
*/
@Slow
public class PercolatorFacetsAndAggregationsTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -19,6 +19,8 @@
package org.elasticsearch.percolator;
import com.google.common.base.Predicate;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.ShardOperationFailedException;
import org.elasticsearch.action.admin.cluster.node.stats.NodeStats;
import org.elasticsearch.action.admin.cluster.node.stats.NodesStatsResponse;
@ -104,6 +106,7 @@ import static org.hamcrest.Matchers.nullValue;
/**
*
*/
@Slow
public class PercolatorTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -20,6 +20,8 @@
package org.elasticsearch.percolator;
import com.google.common.base.Predicate;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.admin.indices.stats.IndicesStatsResponse;
import org.elasticsearch.action.get.GetResponse;
import org.elasticsearch.action.percolate.PercolateResponse;
@ -46,6 +48,7 @@ import static org.hamcrest.Matchers.*;
/**
*/
@ClusterScope(scope = ElasticsearchIntegrationTest.Scope.TEST)
@Slow
public class TTLPercolatorTests extends ElasticsearchIntegrationTest {
private static final long PURGE_INTERVAL = 200;

View File

@ -91,6 +91,7 @@ import static org.hamcrest.Matchers.*;
*/
@ClusterScope(scope = Scope.TEST, numDataNodes = 0)
@TestLogging("indices.recovery:TRACE,index.shard.service:TRACE")
@Slow
public class RelocationTests extends ElasticsearchIntegrationTest {
private final TimeValue ACCEPTABLE_RELOCATION_TIME = new TimeValue(5, TimeUnit.MINUTES);

View File

@ -19,6 +19,7 @@
package org.elasticsearch.recovery;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.admin.indices.flush.FlushResponse;
import org.elasticsearch.action.admin.indices.refresh.RefreshResponse;
import org.elasticsearch.action.get.GetResponse;
@ -32,6 +33,7 @@ import static org.elasticsearch.common.settings.ImmutableSettings.settingsBuilde
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
import static org.hamcrest.Matchers.equalTo;
@Slow
public class SimpleRecoveryTests extends ElasticsearchIntegrationTest {
@Override

View File

@ -19,12 +19,14 @@
package org.elasticsearch.recovery;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.common.settings.ImmutableSettings;
import org.elasticsearch.common.settings.Settings;
/**
*
*/
@Slow
public class SmallTranslogOpsRecoveryTests extends SimpleRecoveryTests {
@Override

View File

@ -19,6 +19,7 @@
package org.elasticsearch.routing;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.Version;
import org.elasticsearch.action.RoutingMissingException;
@ -41,6 +42,7 @@ import org.elasticsearch.test.ElasticsearchIntegrationTest;
import static org.elasticsearch.index.query.QueryBuilders.matchAllQuery;
import static org.hamcrest.Matchers.*;
@Slow
public class SimpleRoutingTests extends ElasticsearchIntegrationTest {
@Override

View File

@ -20,6 +20,8 @@
package org.elasticsearch.script;
import com.google.common.collect.ImmutableSet;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.ElasticsearchIllegalArgumentException;
import org.elasticsearch.common.inject.Module;
import org.elasticsearch.common.settings.ImmutableSettings;
@ -34,6 +36,7 @@ import org.junit.Test;
import static org.hamcrest.CoreMatchers.containsString;
import static org.hamcrest.CoreMatchers.notNullValue;
@Slow
public class CustomScriptContextTests extends ElasticsearchIntegrationTest {
private static final ImmutableSet<String> LANG_SET = ImmutableSet.of(GroovyScriptEngineService.NAME, MustacheScriptEngineService.NAME, ExpressionScriptEngineService.NAME);

View File

@ -19,6 +19,7 @@
package org.elasticsearch.script;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.search.SearchPhaseExecutionException;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.action.search.ShardSearchFailure;
@ -43,6 +44,7 @@ import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcke
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertHitCount;
import static org.hamcrest.Matchers.equalTo;
@Slow
public class IndexLookupTests extends ElasticsearchIntegrationTest {
String includeAllFlag = "_FREQUENCIES | _OFFSETS | _PAYLOADS | _POSITIONS | _CACHE";

View File

@ -18,6 +18,7 @@
*/
package org.elasticsearch.script;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.ExceptionsHelper;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.action.search.SearchResponse;
@ -38,6 +39,7 @@ import static org.hamcrest.Matchers.equalTo;
//Use Suite scope so that paths get set correctly
@ElasticsearchIntegrationTest.ClusterScope(scope = ElasticsearchIntegrationTest.Scope.SUITE)
@Slow
public class OnDiskScriptTests extends ElasticsearchIntegrationTest {
@Override

View File

@ -18,6 +18,7 @@
*/
package org.elasticsearch.script;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.admin.indices.delete.DeleteIndexResponse;
import org.elasticsearch.action.admin.indices.exists.indices.IndicesExistsRequest;
import org.elasticsearch.action.admin.indices.exists.indices.IndicesExistsResponse;
@ -31,6 +32,7 @@ import org.elasticsearch.test.ElasticsearchIntegrationTest;
import org.junit.Test;
@ElasticsearchIntegrationTest.ClusterScope(scope = ElasticsearchIntegrationTest.Scope.TEST)
@Slow
public class ScriptIndexSettingsTest extends ElasticsearchIntegrationTest{

View File

@ -22,6 +22,7 @@ package org.elasticsearch.search.aggregations;
import com.carrotsearch.hppc.IntIntMap;
import com.carrotsearch.hppc.IntIntOpenHashMap;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.search.aggregations.Aggregator.SubAggCollectionMode;
@ -46,6 +47,7 @@ import static org.hamcrest.core.IsNull.notNullValue;
/**
*
*/
@Slow
public class CombiTests extends ElasticsearchIntegrationTest {
/**

View File

@ -18,6 +18,7 @@
*/
package org.elasticsearch.search.aggregations.bucket;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.action.update.UpdateResponse;
@ -49,6 +50,7 @@ import static org.hamcrest.Matchers.*;
/**
*/
@ElasticsearchIntegrationTest.SuiteScopeTest
@Slow
public class ChildrenTests extends ElasticsearchIntegrationTest {
private final static Map<String, Control> categoryToControl = new HashMap<>();

View File

@ -18,6 +18,7 @@
*/
package org.elasticsearch.search.aggregations.bucket;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.search.aggregations.bucket.filter.Filter;
import org.elasticsearch.search.aggregations.bucket.terms.StringTerms;
@ -32,7 +33,7 @@ import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertSear
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.instanceOf;
@Slow
public class DedicatedAggregationTests extends ElasticsearchIntegrationTest {
// https://github.com/elasticsearch/elasticsearch/issues/7240

View File

@ -18,6 +18,7 @@
*/
package org.elasticsearch.search.aggregations.bucket;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.action.search.SearchResponse;
@ -65,6 +66,7 @@ import static org.hamcrest.core.IsNull.notNullValue;
*
*/
@ElasticsearchIntegrationTest.SuiteScopeTest
@Slow
public class DoubleTermsTests extends AbstractTermsTests {
private static final int NUM_DOCS = 5; // TODO: randomize the size?

View File

@ -19,6 +19,7 @@
package org.elasticsearch.search.aggregations.bucket;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.action.search.SearchResponse;
@ -53,6 +54,7 @@ import static org.hamcrest.core.IsNull.notNullValue;
*
*/
@ElasticsearchIntegrationTest.SuiteScopeTest
@Slow
public class FiltersTests extends ElasticsearchIntegrationTest {
static int numDocs, numTag1Docs, numTag2Docs;

View File

@ -20,6 +20,7 @@ package org.elasticsearch.search.aggregations.bucket;
import com.carrotsearch.hppc.LongOpenHashSet;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.apache.tools.ant.filters.TokenFilter.ContainsString;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.action.search.SearchPhaseExecutionException;
@ -62,6 +63,7 @@ import static org.hamcrest.core.IsNull.notNullValue;
*
*/
@ElasticsearchIntegrationTest.SuiteScopeTest
@Slow
public class HistogramTests extends ElasticsearchIntegrationTest {
private static final String SINGLE_VALUED_FIELD_NAME = "l_value";

View File

@ -18,6 +18,7 @@
*/
package org.elasticsearch.search.aggregations.bucket;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.index.mapper.ip.IpFieldMapper;
@ -50,6 +51,7 @@ import static org.hamcrest.core.IsNull.nullValue;
*
*/
@ElasticsearchIntegrationTest.SuiteScopeTest
@Slow
public class IPv4RangeTests extends ElasticsearchIntegrationTest {
@Override

View File

@ -18,6 +18,7 @@
*/
package org.elasticsearch.search.aggregations.bucket;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.action.search.SearchResponse;
@ -63,6 +64,7 @@ import static org.hamcrest.core.IsNull.notNullValue;
*
*/
@ElasticsearchIntegrationTest.SuiteScopeTest
@Slow
public class LongTermsTests extends AbstractTermsTests {
private static final int NUM_DOCS = 5; // TODO randomize the size?

View File

@ -23,6 +23,7 @@ import com.carrotsearch.hppc.LongOpenHashSet;
import com.carrotsearch.hppc.LongSet;
import com.carrotsearch.randomizedtesting.generators.RandomStrings;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.action.search.SearchRequest;
import org.elasticsearch.action.search.SearchResponse;
@ -54,6 +55,7 @@ import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAllS
@ElasticsearchIntegrationTest.SuiteScopeTest
@Slow
public class MinDocCountTests extends AbstractTermsTests {
private static final QueryBuilder QUERY = QueryBuilders.termQuery("match", true);

View File

@ -18,6 +18,7 @@
*/
package org.elasticsearch.search.aggregations.bucket;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.action.search.SearchPhaseExecutionException;
import org.elasticsearch.action.search.SearchResponse;
@ -67,6 +68,7 @@ import static org.hamcrest.core.IsNull.notNullValue;
*
*/
@ElasticsearchIntegrationTest.SuiteScopeTest
@Slow
public class NestedTests extends ElasticsearchIntegrationTest {
static int numParents;

View File

@ -18,6 +18,7 @@
*/
package org.elasticsearch.search.aggregations.bucket;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.search.aggregations.AggregationBuilders;
@ -34,7 +35,7 @@ import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertSear
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.instanceOf;
@Slow
public class ParentIdAggTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -20,6 +20,7 @@ package org.elasticsearch.search.aggregations.bucket;
import com.google.common.collect.ImmutableMap;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.search.aggregations.Aggregator.SubAggCollectionMode;
import org.elasticsearch.search.aggregations.bucket.terms.Terms;
@ -32,6 +33,7 @@ import static org.elasticsearch.index.query.QueryBuilders.matchAllQuery;
import static org.elasticsearch.search.aggregations.AggregationBuilders.terms;
import static org.hamcrest.Matchers.equalTo;
@Slow
public class ShardSizeTermsTests extends ShardSizeTests {
@Test

View File

@ -19,6 +19,7 @@
package org.elasticsearch.search.aggregations.bucket;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.common.io.stream.StreamInput;
@ -58,15 +59,13 @@ import static org.elasticsearch.cluster.metadata.IndexMetaData.SETTING_NUMBER_OF
import static org.elasticsearch.common.settings.ImmutableSettings.settingsBuilder;
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertSearchResponse;
import static org.hamcrest.Matchers.closeTo;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.greaterThan;
import static org.hamcrest.Matchers.*;
/**
*
*/
@ElasticsearchIntegrationTest.ClusterScope(scope = ElasticsearchIntegrationTest.Scope.SUITE)
@Slow
public class SignificantTermsSignificanceScoreTests extends ElasticsearchIntegrationTest {
static final String INDEX_NAME = "testidx";

View File

@ -20,6 +20,7 @@ package org.elasticsearch.search.aggregations.bucket;
import com.google.common.base.Strings;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.action.search.SearchResponse;
@ -72,6 +73,7 @@ import static org.hamcrest.core.IsNull.nullValue;
*
*/
@ElasticsearchIntegrationTest.SuiteScopeTest
@Slow
public class StringTermsTests extends AbstractTermsTests {
private static final String SINGLE_VALUED_FIELD_NAME = "s_value";

View File

@ -19,6 +19,7 @@
package org.elasticsearch.search.aggregations.bucket;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.cluster.metadata.IndexMetaData;
@ -47,6 +48,7 @@ import static org.hamcrest.Matchers.lessThanOrEqualTo;
import static org.hamcrest.core.IsNull.notNullValue;
@ElasticsearchIntegrationTest.SuiteScopeTest
@Slow
public class TermsDocCountErrorTests extends ElasticsearchIntegrationTest{
private static final String STRING_FIELD_NAME = "s_value";

View File

@ -18,6 +18,7 @@
*/
package org.elasticsearch.search.aggregations.bucket;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.index.query.FilterBuilders;
@ -43,6 +44,7 @@ import static org.hamcrest.Matchers.equalTo;
/**
*
*/
@Slow
public class TermsShardMinDocCountTests extends ElasticsearchIntegrationTest {
private static final String index = "someindex";
private static final String type = "testtype";

View File

@ -18,6 +18,7 @@
*/
package org.elasticsearch.search.aggregations.metrics;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.test.ElasticsearchIntegrationTest;
@ -30,6 +31,7 @@ import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder;
*
*/
@ElasticsearchIntegrationTest.SuiteScopeTest
@Slow
public abstract class AbstractNumericTests extends ElasticsearchIntegrationTest {
protected static long minValue, maxValue, minValues, maxValues;

View File

@ -19,6 +19,7 @@
package org.elasticsearch.search.aggregations.metrics;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.common.settings.ImmutableSettings;
@ -41,6 +42,7 @@ import static org.hamcrest.Matchers.greaterThan;
import static org.hamcrest.Matchers.notNullValue;
@ElasticsearchIntegrationTest.SuiteScopeTest
@Slow
public class CardinalityTests extends ElasticsearchIntegrationTest {
@Override

View File

@ -19,6 +19,7 @@
package org.elasticsearch.search.aggregations.metrics;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.common.geo.GeoPoint;
@ -59,6 +60,7 @@ import static org.hamcrest.Matchers.sameInstance;
*
*/
@ElasticsearchIntegrationTest.SuiteScopeTest
@Slow
public class GeoBoundsTests extends ElasticsearchIntegrationTest {
private static final String SINGLE_VALUED_FIELD_NAME = "geo_value";

View File

@ -18,6 +18,7 @@
*/
package org.elasticsearch.search.aggregations.metrics;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.search.aggregations.bucket.global.Global;
import org.elasticsearch.search.aggregations.bucket.histogram.Histogram;
@ -34,6 +35,7 @@ import static org.hamcrest.Matchers.notNullValue;
/**
*
*/
@Slow
public class SumTests extends AbstractNumericTests {
@Override

View File

@ -22,6 +22,7 @@ package org.elasticsearch.search.basic;
import org.apache.lucene.index.DirectoryReader;
import org.apache.lucene.index.LeafReader;
import org.apache.lucene.util.English;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse;
import org.elasticsearch.action.admin.indices.refresh.RefreshResponse;
@ -51,6 +52,7 @@ import java.util.concurrent.ExecutionException;
import static org.elasticsearch.common.settings.ImmutableSettings.settingsBuilder;
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.*;
@Slow
public class SearchWithRandomExceptionsTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -21,10 +21,12 @@ package org.elasticsearch.search.basic;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.common.unit.TimeValue;
import com.google.common.base.Charsets;
import com.google.common.collect.Sets;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.action.search.MultiSearchResponse;
import org.elasticsearch.action.search.SearchPhaseExecutionException;
@ -60,6 +62,7 @@ import static org.elasticsearch.search.builder.SearchSourceBuilder.searchSource;
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertNoFailures;
import static org.hamcrest.Matchers.*;
@Slow
public class TransportTwoNodesSearchTests extends ElasticsearchIntegrationTest {
@Override

View File

@ -19,6 +19,7 @@
package org.elasticsearch.search.child;
import org.apache.lucene.util.LuceneTestCase;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.ElasticsearchIllegalArgumentException;
import org.elasticsearch.action.admin.indices.cache.clear.ClearIndicesCacheResponse;
@ -121,6 +122,7 @@ import static org.hamcrest.Matchers.startsWith;
*
*/
@ClusterScope(scope = Scope.SUITE)
@Slow
public class SimpleChildQuerySearchTests extends ElasticsearchIntegrationTest {
@Override

View File

@ -19,6 +19,7 @@
package org.elasticsearch.search.compress;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.get.GetResponse;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.common.Priority;
@ -37,6 +38,7 @@ import static org.hamcrest.Matchers.equalTo;
/**
*
*/
@Slow
public class SearchSourceCompressTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -19,6 +19,7 @@
package org.elasticsearch.search.functionscore;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.ElasticsearchIllegalArgumentException;
import org.elasticsearch.ElasticsearchIllegalStateException;
import org.elasticsearch.ElasticsearchParseException;
@ -56,6 +57,7 @@ import static org.elasticsearch.search.builder.SearchSourceBuilder.searchSource;
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.*;
import static org.hamcrest.Matchers.*;
@Slow
public class DecayFunctionScoreTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -19,6 +19,7 @@
package org.elasticsearch.search.functionscore;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.action.search.SearchResponse;
@ -60,6 +61,7 @@ import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.greaterThan;
import static org.hamcrest.Matchers.is;
@Slow
public class FunctionScoreTests extends ElasticsearchIntegrationTest {
static final String TYPE = "type";

View File

@ -19,6 +19,7 @@
package org.elasticsearch.search.functionscore;
import org.apache.lucene.util.ArrayUtil;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.index.query.functionscore.random.RandomScoreFunctionBuilder;
import org.elasticsearch.search.SearchHit;
@ -37,7 +38,7 @@ import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcke
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertNoFailures;
import static org.hamcrest.Matchers.*;
@Slow
public class RandomScoreFunctionTests extends ElasticsearchIntegrationTest {
public void testConsistentHitsWithSameSeed() throws Exception {

View File

@ -20,6 +20,7 @@
package org.elasticsearch.search.geo;
import org.apache.lucene.util.LuceneTestCase;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.get.GetResponse;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.cluster.ClusterState;
@ -52,6 +53,7 @@ import static org.elasticsearch.index.query.QueryBuilders.*;
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.*;
import static org.hamcrest.Matchers.*;
@Slow
public class GeoShapeIntegrationTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -60,6 +60,7 @@ import static org.hamcrest.Matchers.*;
/**
*
*/
@Slow
public class HighlighterSearchTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -19,6 +19,7 @@
package org.elasticsearch.search.innerhits;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.action.search.SearchRequest;
import org.elasticsearch.action.search.SearchResponse;
@ -46,6 +47,7 @@ import static org.hamcrest.Matchers.*;
/**
*/
@Slow
public class InnerHitsTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -20,6 +20,8 @@
package org.elasticsearch.search.query;
import com.google.common.collect.ImmutableMap;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.explain.ExplainResponse;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.action.search.SearchResponse;
@ -36,7 +38,7 @@ import java.util.*;
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.*;
@Slow
public class ExistsMissingTests extends ElasticsearchIntegrationTest {
public void testExistsMissing() throws Exception {

View File

@ -20,6 +20,8 @@ package org.elasticsearch.search.query;
import com.carrotsearch.randomizedtesting.generators.RandomPicks;
import com.google.common.collect.Sets;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.admin.indices.create.CreateIndexRequestBuilder;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.action.search.SearchResponse;
@ -50,6 +52,7 @@ import static org.elasticsearch.index.query.QueryBuilders.*;
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.*;
import static org.hamcrest.Matchers.*;
@Slow
public class MultiMatchQueryTests extends ElasticsearchIntegrationTest {
@Before

View File

@ -20,6 +20,7 @@
package org.elasticsearch.search.query;
import org.apache.lucene.util.English;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.Version;
import org.elasticsearch.action.admin.indices.create.CreateIndexRequestBuilder;
@ -62,7 +63,7 @@ import static org.elasticsearch.index.query.functionscore.ScoreFunctionBuilders.
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.*;
import static org.hamcrest.Matchers.*;
@Slow
public class SearchQueryTests extends ElasticsearchIntegrationTest {
@Override

View File

@ -19,6 +19,7 @@
package org.elasticsearch.search.query;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.admin.indices.create.CreateIndexRequestBuilder;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.common.xcontent.XContentFactory;
@ -37,12 +38,12 @@ import static org.elasticsearch.index.query.QueryBuilders.boolQuery;
import static org.elasticsearch.index.query.QueryBuilders.queryStringQuery;
import static org.elasticsearch.index.query.QueryBuilders.simpleQueryStringQuery;
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.*;
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertSearchHits;
import static org.hamcrest.Matchers.equalTo;
/**
* Tests for the {@code simple_query_string} query
*/
@Slow
public class SimpleQueryStringTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -23,6 +23,7 @@ package org.elasticsearch.search.rescore;
import org.apache.lucene.search.Explanation;
import org.apache.lucene.util.English;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.index.IndexRequestBuilder;
import org.elasticsearch.action.search.SearchRequestBuilder;
import org.elasticsearch.action.search.SearchResponse;
@ -52,6 +53,7 @@ import static org.hamcrest.Matchers.*;
/**
*
*/
@Slow
public class QueryRescorerTests extends ElasticsearchIntegrationTest {
@Test

View File

@ -19,6 +19,7 @@
package org.elasticsearch.search.scriptfilter;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.cluster.metadata.IndexMetaData;
import org.elasticsearch.common.settings.ImmutableSettings;
@ -43,6 +44,7 @@ import static org.hamcrest.Matchers.equalTo;
*
*/
@ElasticsearchIntegrationTest.ClusterScope(scope=ElasticsearchIntegrationTest.Scope.SUITE)
@Slow
public class ScriptFilterSearchTests extends ElasticsearchIntegrationTest {
@Override

View File

@ -21,10 +21,12 @@ package org.elasticsearch.search.sort;
import com.carrotsearch.randomizedtesting.annotations.Repeat;
import org.apache.lucene.util.BytesRef;
import org.apache.lucene.util.LuceneTestCase;
import org.apache.lucene.util.TestUtil;
import org.apache.lucene.util.UnicodeUtil;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.ElasticsearchException;
import org.elasticsearch.action.admin.indices.alias.Alias;
import org.elasticsearch.action.index.IndexRequestBuilder;
@ -67,6 +69,7 @@ import static org.hamcrest.Matchers.*;
/**
*
*/
@Slow
public class SimpleSortTests extends ElasticsearchIntegrationTest {
@TestLogging("action.search.type:TRACE")

View File

@ -21,6 +21,8 @@ package org.elasticsearch.search.suggest;
import com.carrotsearch.hppc.ObjectLongOpenHashMap;
import com.carrotsearch.randomizedtesting.generators.RandomStrings;
import com.google.common.collect.Lists;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.ExceptionsHelper;
import org.elasticsearch.action.admin.indices.mapping.put.PutMappingResponse;
import org.elasticsearch.action.admin.indices.optimize.OptimizeResponse;
@ -67,6 +69,7 @@ import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcke
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAllSuccessful;
import static org.hamcrest.Matchers.*;
@Slow
public class CompletionSuggestSearchTests extends ElasticsearchIntegrationTest {
private final String INDEX = RandomStrings.randomAsciiOfLength(getRandom(), 10).toLowerCase(Locale.ROOT);

View File

@ -19,6 +19,8 @@
package org.elasticsearch.search.suggest;
import com.google.common.collect.Sets;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.ElasticsearchIllegalArgumentException;
import org.elasticsearch.action.admin.indices.create.CreateIndexRequestBuilder;
import org.elasticsearch.action.suggest.SuggestRequest;
@ -51,6 +53,7 @@ import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.*;
import static org.elasticsearch.test.hamcrest.ElasticsearchGeoAssertions.assertDistance;
import static org.hamcrest.Matchers.containsString;
@Slow
public class ContextSuggestSearchTests extends ElasticsearchIntegrationTest {
private static final String INDEX = "test";

View File

@ -21,6 +21,7 @@ package org.elasticsearch.snapshots;
import com.carrotsearch.randomizedtesting.LifecycleScope;
import com.google.common.collect.ImmutableList;
import org.apache.lucene.util.LuceneTestCase.Slow;
import org.elasticsearch.action.admin.cluster.repositories.delete.DeleteRepositoryResponse;
import org.elasticsearch.action.admin.cluster.repositories.get.GetRepositoriesResponse;
import org.elasticsearch.action.admin.cluster.repositories.put.PutRepositoryResponse;
@ -48,6 +49,7 @@ import static org.hamcrest.Matchers.notNullValue;
/**
*/
@Slow
public class RepositoriesTests extends AbstractSnapshotTests {
@Test

Some files were not shown because too many files have changed in this diff Show More