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