Removed explicit delete index calls, because it redundant and the test framework wipes the clusters between tests.

Original commit: elastic/x-pack-elasticsearch@eebeef3bee
This commit is contained in:
Martijn van Groningen 2014-11-26 22:18:19 +01:00
parent 6b4f68fcb3
commit 4048bfe55c
1 changed files with 0 additions and 5 deletions

View File

@ -83,10 +83,6 @@ public abstract class AbstractAlertingTests extends ElasticsearchIntegrationTest
// Clear all internal alerting state for the next test method:
logger.info("[{}#{}]: clearing alerts", getTestClass().getSimpleName(), getTestName());
stopAlerting();
client().admin().indices().prepareDelete(AlertsStore.ALERT_INDEX, AlertActionManager.ALERT_HISTORY_INDEX_PREFIX + "*")
.setIndicesOptions(IndicesOptions.lenientExpandOpen())
.get();
startAlerting();
}
protected BytesReference createAlertSource(String cron, SearchRequest request, String scriptTrigger) throws IOException {
@ -122,7 +118,6 @@ public abstract class AbstractAlertingTests extends ElasticsearchIntegrationTest
return internalTestCluster().getInstance(AlertsClient.class);
}
protected void assertAlertTriggered(final String alertName, final long minimumExpectedAlertActionsWithActionPerformed) throws Exception {
assertAlertTriggered(alertName, minimumExpectedAlertActionsWithActionPerformed, true);
}