diff --git a/plugin/src/test/java/org/elasticsearch/xpack/monitoring/exporter/local/LocalExporterTests.java b/plugin/src/test/java/org/elasticsearch/xpack/monitoring/exporter/local/LocalExporterTests.java index 69ae271395f..1aed7089c7a 100644 --- a/plugin/src/test/java/org/elasticsearch/xpack/monitoring/exporter/local/LocalExporterTests.java +++ b/plugin/src/test/java/org/elasticsearch/xpack/monitoring/exporter/local/LocalExporterTests.java @@ -195,6 +195,9 @@ public class LocalExporterTests extends MonitoringIntegTestCase { assertEquals(RestStatus.OK, bulk.get().status()); refresh(); + assertThat(client().admin().indices().prepareExists(".monitoring-*").get().isExists(), is(true)); + ensureYellow(".monitoring-*"); + SearchResponse response = client().prepareSearch(".monitoring-*").get(); assertEquals(nbDocs, response.getHits().getTotalHits()); });