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:
parent
6b4f68fcb3
commit
4048bfe55c
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue