Now fix test for real
Original commit: elastic/x-pack-elasticsearch@57e5a401e7
This commit is contained in:
parent
14b1f6c3d2
commit
2aa91e84ed
|
@ -96,8 +96,6 @@ public class BasicAlertsTests extends AbstractAlertsIntegrationTests {
|
|||
@TestLogging("action.admin.indices.delete:TRACE")
|
||||
public void testDeleteAlert() throws Exception {
|
||||
AlertsClient alertsClient = alertClient();
|
||||
// Have a sample document in the index, the alert is going to evaluate
|
||||
client().prepareIndex("my-index", "my-type").setSource("field", "value").get();
|
||||
SearchRequest searchRequest = AlertsTestUtils.newInputSearchRequest("my-index").source(searchSource().query(matchAllQuery()));
|
||||
PutAlertResponse indexResponse = alertsClient.preparePutAlert("my-first-alert")
|
||||
.source(alertSourceBuilder()
|
||||
|
|
Loading…
Reference in New Issue