diff --git a/marvel/src/test/java/org/elasticsearch/marvel/agent/collector/cluster/ClusterInfoCollectorTests.java b/marvel/src/test/java/org/elasticsearch/marvel/agent/collector/cluster/ClusterInfoCollectorTests.java index a8bee4baa90..f0c457e6d8a 100644 --- a/marvel/src/test/java/org/elasticsearch/marvel/agent/collector/cluster/ClusterInfoCollectorTests.java +++ b/marvel/src/test/java/org/elasticsearch/marvel/agent/collector/cluster/ClusterInfoCollectorTests.java @@ -5,6 +5,7 @@ */ package org.elasticsearch.marvel.agent.collector.cluster; +import org.apache.lucene.util.LuceneTestCase.BadApple; import org.elasticsearch.cluster.ClusterName; import org.elasticsearch.cluster.ClusterService; import org.elasticsearch.common.settings.Settings; @@ -22,6 +23,8 @@ import static org.hamcrest.Matchers.hasSize; import static org.hamcrest.Matchers.instanceOf; import static org.hamcrest.Matchers.notNullValue; +//test is just too slow, please fix it to not be sleep-based +@BadApple(bugUrl = "https://github.com/elastic/x-plugins/issues/1007") public class ClusterInfoCollectorTests extends AbstractCollectorTestCase { public void testClusterInfoCollector() throws Exception { Collection results = newClusterInfoCollector().doCollect(); diff --git a/marvel/src/test/java/org/elasticsearch/marvel/agent/collector/cluster/ClusterStatsCollectorTests.java b/marvel/src/test/java/org/elasticsearch/marvel/agent/collector/cluster/ClusterStatsCollectorTests.java index 6cd50a6741e..80b9cd4f043 100644 --- a/marvel/src/test/java/org/elasticsearch/marvel/agent/collector/cluster/ClusterStatsCollectorTests.java +++ b/marvel/src/test/java/org/elasticsearch/marvel/agent/collector/cluster/ClusterStatsCollectorTests.java @@ -5,6 +5,7 @@ */ package org.elasticsearch.marvel.agent.collector.cluster; +import org.apache.lucene.util.LuceneTestCase.BadApple; import org.elasticsearch.cluster.ClusterService; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.marvel.agent.collector.AbstractCollectorTestCase; @@ -19,6 +20,8 @@ import static org.hamcrest.Matchers.greaterThan; import static org.hamcrest.Matchers.hasSize; import static org.hamcrest.Matchers.instanceOf; +//test is just too slow, please fix it to not be sleep-based +@BadApple(bugUrl = "https://github.com/elastic/x-plugins/issues/1007") public class ClusterStatsCollectorTests extends AbstractCollectorTestCase { public void testClusterStatsCollector() throws Exception { Collection results = newClusterStatsCollector().doCollect(); diff --git a/marvel/src/test/java/org/elasticsearch/marvel/agent/renderer/cluster/ClusterStateTests.java b/marvel/src/test/java/org/elasticsearch/marvel/agent/renderer/cluster/ClusterStateTests.java index 2405147adac..94cbe3e09f2 100644 --- a/marvel/src/test/java/org/elasticsearch/marvel/agent/renderer/cluster/ClusterStateTests.java +++ b/marvel/src/test/java/org/elasticsearch/marvel/agent/renderer/cluster/ClusterStateTests.java @@ -5,6 +5,7 @@ */ package org.elasticsearch.marvel.agent.renderer.cluster; +import org.apache.lucene.util.LuceneTestCase.BadApple; import org.elasticsearch.action.search.SearchResponse; import org.elasticsearch.cluster.node.DiscoveryNodes; import org.elasticsearch.common.settings.Settings; @@ -27,6 +28,8 @@ import static org.hamcrest.Matchers.greaterThan; import static org.hamcrest.Matchers.greaterThanOrEqualTo; import static org.hamcrest.core.Is.is; +//test is just too slow, please fix it to not be sleep-based +@BadApple(bugUrl = "https://github.com/elastic/x-plugins/issues/1007") @ClusterScope(scope = Scope.TEST) public class ClusterStateTests extends MarvelIntegTestCase { @Override diff --git a/marvel/src/test/java/org/elasticsearch/marvel/agent/renderer/shards/ShardsTests.java b/marvel/src/test/java/org/elasticsearch/marvel/agent/renderer/shards/ShardsTests.java index 45aefddace0..0a5a65579d0 100644 --- a/marvel/src/test/java/org/elasticsearch/marvel/agent/renderer/shards/ShardsTests.java +++ b/marvel/src/test/java/org/elasticsearch/marvel/agent/renderer/shards/ShardsTests.java @@ -5,6 +5,7 @@ */ package org.elasticsearch.marvel.agent.renderer.shards; +import org.apache.lucene.util.LuceneTestCase.BadApple; import org.elasticsearch.action.search.SearchRequestBuilder; import org.elasticsearch.action.search.SearchResponse; import org.elasticsearch.cluster.metadata.IndexMetaData; @@ -30,6 +31,8 @@ import static org.hamcrest.Matchers.greaterThan; import static org.hamcrest.Matchers.greaterThanOrEqualTo; import static org.hamcrest.Matchers.instanceOf; +//test is just too slow, please fix it to not be sleep-based +@BadApple(bugUrl = "https://github.com/elastic/x-plugins/issues/1007") @ClusterScope(scope = Scope.TEST) public class ShardsTests extends MarvelIntegTestCase { private static final String INDEX_PREFIX = "test-shards-"; diff --git a/marvel/src/test/java/org/elasticsearch/marvel/agent/settings/MarvelSettingsTests.java b/marvel/src/test/java/org/elasticsearch/marvel/agent/settings/MarvelSettingsTests.java index 525f94b90d5..f0711a5731a 100644 --- a/marvel/src/test/java/org/elasticsearch/marvel/agent/settings/MarvelSettingsTests.java +++ b/marvel/src/test/java/org/elasticsearch/marvel/agent/settings/MarvelSettingsTests.java @@ -16,6 +16,10 @@ import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcke import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.instanceOf; +import org.apache.lucene.util.LuceneTestCase.BadApple; + +//test is just too slow, please fix it to not be sleep-based +@BadApple(bugUrl = "https://github.com/elastic/x-plugins/issues/1007") @ESIntegTestCase.ClusterScope(scope = ESIntegTestCase.Scope.TEST, numDataNodes = 1, numClientNodes = 0) public class MarvelSettingsTests extends MarvelIntegTestCase { private final TimeValue interval = newRandomTimeValue(); diff --git a/shield/src/test/java/org/elasticsearch/integration/IndexPrivilegeTests.java b/shield/src/test/java/org/elasticsearch/integration/IndexPrivilegeTests.java index 56d38509316..6be87088adf 100644 --- a/shield/src/test/java/org/elasticsearch/integration/IndexPrivilegeTests.java +++ b/shield/src/test/java/org/elasticsearch/integration/IndexPrivilegeTests.java @@ -5,6 +5,7 @@ */ package org.elasticsearch.integration; +import org.apache.lucene.util.LuceneTestCase.BadApple; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.node.Node; import org.elasticsearch.test.rest.client.http.HttpResponse; @@ -17,6 +18,8 @@ import java.util.Map; import static java.util.Collections.singletonMap; import static org.hamcrest.Matchers.is; +//test is just too slow, please fix it to not be sleep-based +@BadApple(bugUrl = "https://github.com/elastic/x-plugins/issues/1007") public class IndexPrivilegeTests extends AbstractPrivilegeTestCase { private String jsonDoc = "{ \"name\" : \"elasticsearch\"}"; diff --git a/shield/src/test/java/org/elasticsearch/integration/PermissionPrecedenceTests.java b/shield/src/test/java/org/elasticsearch/integration/PermissionPrecedenceTests.java index 26660d39673..8873726dfa0 100644 --- a/shield/src/test/java/org/elasticsearch/integration/PermissionPrecedenceTests.java +++ b/shield/src/test/java/org/elasticsearch/integration/PermissionPrecedenceTests.java @@ -5,6 +5,7 @@ */ package org.elasticsearch.integration; +import org.apache.lucene.util.LuceneTestCase.BadApple; import org.elasticsearch.ElasticsearchSecurityException; import org.elasticsearch.action.admin.indices.template.get.GetIndexTemplatesResponse; import org.elasticsearch.action.admin.indices.template.put.PutIndexTemplateResponse; @@ -30,6 +31,8 @@ import static org.hamcrest.Matchers.hasSize; * actions that are normally categorized as index actions as cluster actions - for example, * index template actions. */ +//test is just too slow, please fix it to not be sleep-based +@BadApple(bugUrl = "https://github.com/elastic/x-plugins/issues/1007") public class PermissionPrecedenceTests extends ShieldIntegTestCase { protected static final String USERS_PASSWD_HASHED = new String(Hasher.BCRYPT.hash(new SecuredString("test123".toCharArray()))); diff --git a/shield/src/test/java/org/elasticsearch/shield/audit/index/IndexAuditTrailEnabledTests.java b/shield/src/test/java/org/elasticsearch/shield/audit/index/IndexAuditTrailEnabledTests.java index c4ae5f2261d..41c24e4b038 100644 --- a/shield/src/test/java/org/elasticsearch/shield/audit/index/IndexAuditTrailEnabledTests.java +++ b/shield/src/test/java/org/elasticsearch/shield/audit/index/IndexAuditTrailEnabledTests.java @@ -5,6 +5,7 @@ */ package org.elasticsearch.shield.audit.index; +import org.apache.lucene.util.LuceneTestCase.BadApple; import org.elasticsearch.action.admin.indices.template.delete.DeleteIndexTemplateResponse; import org.elasticsearch.action.admin.indices.template.get.GetIndexTemplatesResponse; import org.elasticsearch.action.search.SearchResponse; @@ -22,6 +23,8 @@ import java.util.Set; import static org.hamcrest.Matchers.is; +//test is just too slow, please fix it to not be sleep-based +@BadApple(bugUrl = "https://github.com/elastic/x-plugins/issues/1007") @ClusterScope(scope = Scope.TEST, randomDynamicTemplates = false) public class IndexAuditTrailEnabledTests extends ShieldIntegTestCase { IndexNameResolver.Rollover rollover = randomFrom(IndexNameResolver.Rollover.values()); diff --git a/shield/src/test/java/org/elasticsearch/shield/audit/index/IndexAuditTrailTests.java b/shield/src/test/java/org/elasticsearch/shield/audit/index/IndexAuditTrailTests.java index e60bbbe1664..78214265f81 100644 --- a/shield/src/test/java/org/elasticsearch/shield/audit/index/IndexAuditTrailTests.java +++ b/shield/src/test/java/org/elasticsearch/shield/audit/index/IndexAuditTrailTests.java @@ -5,6 +5,7 @@ */ package org.elasticsearch.shield.audit.index; +import org.apache.lucene.util.LuceneTestCase.BadApple; import org.elasticsearch.action.IndicesRequest; import org.elasticsearch.action.admin.cluster.node.info.NodesInfoResponse; import org.elasticsearch.action.admin.indices.settings.get.GetSettingsResponse; @@ -58,6 +59,8 @@ import static org.mockito.Mockito.*; /** * */ +//test is just too slow, please fix it to not be sleep-based +@BadApple(bugUrl = "https://github.com/elastic/x-plugins/issues/1007") @ESIntegTestCase.ClusterScope(scope = SUITE, numDataNodes = 1) public class IndexAuditTrailTests extends ShieldIntegTestCase { public static final String SECOND_CLUSTER_NODE_PREFIX = "remote_" + SUITE_CLUSTER_NODE_PREFIX; diff --git a/shield/src/test/java/org/elasticsearch/shield/authc/support/CachingUsernamePasswordRealmTests.java b/shield/src/test/java/org/elasticsearch/shield/authc/support/CachingUsernamePasswordRealmTests.java index 63e55e264da..ed880eb29f9 100644 --- a/shield/src/test/java/org/elasticsearch/shield/authc/support/CachingUsernamePasswordRealmTests.java +++ b/shield/src/test/java/org/elasticsearch/shield/authc/support/CachingUsernamePasswordRealmTests.java @@ -5,6 +5,7 @@ */ package org.elasticsearch.shield.authc.support; +import org.apache.lucene.util.LuceneTestCase.BadApple; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.common.unit.TimeValue; import org.elasticsearch.shield.User; @@ -24,6 +25,8 @@ import static org.hamcrest.Matchers.not; import static org.hamcrest.Matchers.nullValue; import static org.hamcrest.Matchers.sameInstance; +//test is just too slow, please fix it to not be sleep-based +@BadApple(bugUrl = "https://github.com/elastic/x-plugins/issues/1007") public class CachingUsernamePasswordRealmTests extends ESTestCase { private Settings globalSettings; diff --git a/watcher/src/test/java/org/elasticsearch/watcher/test/integration/NoMasterNodeTests.java b/watcher/src/test/java/org/elasticsearch/watcher/test/integration/NoMasterNodeTests.java index df6126aeec7..a33add93404 100644 --- a/watcher/src/test/java/org/elasticsearch/watcher/test/integration/NoMasterNodeTests.java +++ b/watcher/src/test/java/org/elasticsearch/watcher/test/integration/NoMasterNodeTests.java @@ -6,6 +6,7 @@ package org.elasticsearch.watcher.test.integration; import org.apache.lucene.util.LuceneTestCase.AwaitsFix; +import org.apache.lucene.util.LuceneTestCase.BadApple; import org.elasticsearch.ExceptionsHelper; import org.elasticsearch.action.search.SearchRequest; import org.elasticsearch.client.Client; @@ -52,6 +53,8 @@ import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.instanceOf; import static org.hamcrest.core.Is.is; +//test is just too slow, please fix it to not be sleep-based +@BadApple(bugUrl = "https://github.com/elastic/x-plugins/issues/1007") @TestLogging("discovery:TRACE,watcher:TRACE") @ClusterScope(scope = TEST, numClientNodes = 0, transportClientRatio = 0, randomDynamicTemplates = false, numDataNodes = 0) @SuppressLocalMode diff --git a/watcher/src/test/java/org/elasticsearch/watcher/transport/action/ack/WatchAckTests.java b/watcher/src/test/java/org/elasticsearch/watcher/transport/action/ack/WatchAckTests.java index 13de098821f..a1f9a1a7a2c 100644 --- a/watcher/src/test/java/org/elasticsearch/watcher/transport/action/ack/WatchAckTests.java +++ b/watcher/src/test/java/org/elasticsearch/watcher/transport/action/ack/WatchAckTests.java @@ -6,6 +6,7 @@ package org.elasticsearch.watcher.transport.action.ack; +import org.apache.lucene.util.LuceneTestCase.BadApple; import org.elasticsearch.action.ActionRequestValidationException; import org.elasticsearch.action.delete.DeleteResponse; import org.elasticsearch.action.get.GetRequest; @@ -48,6 +49,8 @@ import static org.hamcrest.core.IsEqual.equalTo; /** */ +//test is just too slow, please fix it to not be sleep-based +@BadApple(bugUrl = "https://github.com/elastic/x-plugins/issues/1007") public class WatchAckTests extends AbstractWatcherIntegrationTestCase { private IndexResponse indexTestDoc() { createIndex("actions", "events"); diff --git a/watcher/src/test/java/org/elasticsearch/watcher/transport/action/execute/ExecuteWatchWithDateMathTests.java b/watcher/src/test/java/org/elasticsearch/watcher/transport/action/execute/ExecuteWatchWithDateMathTests.java index 81f0b174caf..3faa7e31adc 100644 --- a/watcher/src/test/java/org/elasticsearch/watcher/transport/action/execute/ExecuteWatchWithDateMathTests.java +++ b/watcher/src/test/java/org/elasticsearch/watcher/transport/action/execute/ExecuteWatchWithDateMathTests.java @@ -5,6 +5,7 @@ */ package org.elasticsearch.watcher.transport.action.execute; +import org.apache.lucene.util.LuceneTestCase.BadApple; import org.elasticsearch.watcher.client.WatcherClient; import org.elasticsearch.watcher.execution.Wid; import org.elasticsearch.watcher.support.WatcherDateTimeUtils; @@ -29,6 +30,8 @@ import static org.hamcrest.Matchers.notNullValue; /** * */ +//test is just too slow, please fix it to not be sleep-based +@BadApple(bugUrl = "https://github.com/elastic/x-plugins/issues/1007") public class ExecuteWatchWithDateMathTests extends AbstractWatcherIntegrationTestCase { @Override protected boolean timeWarped() { diff --git a/watcher/src/test/java/org/elasticsearch/watcher/trigger/schedule/engine/SchedulerScheduleEngineTests.java b/watcher/src/test/java/org/elasticsearch/watcher/trigger/schedule/engine/SchedulerScheduleEngineTests.java index a5bdcafcf22..2ff9f3ee843 100644 --- a/watcher/src/test/java/org/elasticsearch/watcher/trigger/schedule/engine/SchedulerScheduleEngineTests.java +++ b/watcher/src/test/java/org/elasticsearch/watcher/trigger/schedule/engine/SchedulerScheduleEngineTests.java @@ -12,6 +12,10 @@ import org.elasticsearch.watcher.trigger.schedule.ScheduleRegistry; import static org.mockito.Mockito.mock; +import org.apache.lucene.util.LuceneTestCase.BadApple; + +//test is just too slow, please fix it to not be sleep-based +@BadApple(bugUrl = "https://github.com/elastic/x-plugins/issues/1007") public class SchedulerScheduleEngineTests extends BaseTriggerEngineTestCase { protected TriggerEngine createEngine() { diff --git a/watcher/src/test/java/org/elasticsearch/watcher/trigger/schedule/engine/TickerScheduleEngineTests.java b/watcher/src/test/java/org/elasticsearch/watcher/trigger/schedule/engine/TickerScheduleEngineTests.java index 8be9366585c..1b37414c4c0 100644 --- a/watcher/src/test/java/org/elasticsearch/watcher/trigger/schedule/engine/TickerScheduleEngineTests.java +++ b/watcher/src/test/java/org/elasticsearch/watcher/trigger/schedule/engine/TickerScheduleEngineTests.java @@ -12,8 +12,12 @@ import org.elasticsearch.watcher.trigger.schedule.ScheduleRegistry; import static org.mockito.Mockito.mock; +import org.apache.lucene.util.LuceneTestCase.BadApple; + /** */ +//test is just too slow, please fix it to not be sleep-based +@BadApple(bugUrl = "https://github.com/elastic/x-plugins/issues/1007") public class TickerScheduleEngineTests extends BaseTriggerEngineTestCase { @Override