diff --git a/alerting/src/test/kotlin/org/opensearch/alerting/MonitorDataSourcesIT.kt b/alerting/src/test/kotlin/org/opensearch/alerting/MonitorDataSourcesIT.kt index 0aa4ccfac..e1ba9c898 100644 --- a/alerting/src/test/kotlin/org/opensearch/alerting/MonitorDataSourcesIT.kt +++ b/alerting/src/test/kotlin/org/opensearch/alerting/MonitorDataSourcesIT.kt @@ -175,6 +175,7 @@ class MonitorDataSourcesIT : AlertingSingleNodeTestCase() { ) assertFalse(monitorResponse?.id.isNullOrEmpty()) monitor = monitorResponse!!.monitor + indexDoc(index, "1", testDoc) val id = monitorResponse.id val executeMonitorResponse = executeMonitor(monitor, id, false) Assert.assertEquals(executeMonitorResponse!!.monitorRunResult.monitorName, monitor.name) @@ -469,6 +470,7 @@ class MonitorDataSourcesIT : AlertingSingleNodeTestCase() { val customAlertsIndex = "custom_alerts_index" val customQueryIndex = "custom_query_index" + Assert.assertFalse(client().admin().cluster().state(ClusterStateRequest()).get().state.routingTable.hasIndex(customQueryIndex)) val customFindingsIndex = "custom_findings_index" val updateMonitorResponse = updateMonitor( monitor.copy(