Test: ensure a no action entry has been fired

Original commit: elastic/x-pack-elasticsearch@0e6d915669
This commit is contained in:
Martijn van Groningen 2014-11-28 16:32:09 +01:00
parent 8910a1f284
commit 8e8d360fd2
1 changed files with 2 additions and 1 deletions

View File

@ -39,7 +39,8 @@ public class AlertMetadataTest extends AbstractAlertingTests {
alertClient().preparePutAlert("1")
.setAlertSource(createAlertSource("0/5 * * * * ? *", triggerRequest, "hits.total == 1", metadata))
.get();
assertAlertTriggered("1", 0, false);
// Wait for a no action entry to be added. (the trigger search request will not match, because there are no docs in my-index)
assertNoAlertTrigger("1", 1);
refresh();
SearchResponse searchResponse = client().prepareSearch(ALERT_HISTORY_INDEX_PREFIX + "*")