From 9daf4fc1c4eeaec44ba842fce407db15f5bbf18a Mon Sep 17 00:00:00 2001 From: Nishtha Mehrotra Date: Tue, 14 Jan 2025 17:29:33 -0800 Subject: [PATCH] Updated assert Signed-off-by: Nishtha Mehrotra --- .../kotlin/org/opensearch/alerting/MonitorDataSourcesIT.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alerting/src/test/kotlin/org/opensearch/alerting/MonitorDataSourcesIT.kt b/alerting/src/test/kotlin/org/opensearch/alerting/MonitorDataSourcesIT.kt index d2360fc07..ad6e8a199 100644 --- a/alerting/src/test/kotlin/org/opensearch/alerting/MonitorDataSourcesIT.kt +++ b/alerting/src/test/kotlin/org/opensearch/alerting/MonitorDataSourcesIT.kt @@ -5119,7 +5119,7 @@ class MonitorDataSourcesIT : AlertingSingleNodeTestCase() { } catch (e: Exception) { e.message?.let { assertTrue( - "Expected 0 hits for searchMonitorMetadata, got non-0 results.", + "Exception not returning GetWorkflow Action error ", it.contains("Workflow not found.") ) } @@ -5142,7 +5142,7 @@ class MonitorDataSourcesIT : AlertingSingleNodeTestCase() { } catch (e: Exception) { e.message?.let { assertTrue( - "Exception not returning searchMonitorMetadata error ", + "Expected 0 hits for searchMonitorMetadata, got non-0 results.", it.contains("List is empty") ) }