From 046f7d328e993d566c1863dff3a73ea3b372c8d7 Mon Sep 17 00:00:00 2001 From: Subhobrata Dey Date: Wed, 3 Jul 2024 01:24:18 +0000 Subject: [PATCH] fix tests Signed-off-by: Subhobrata Dey --- .../java/org/opensearch/alerting/SampleRemoteMonitorIT.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sample-remote-monitor-plugin/src/test/java/org/opensearch/alerting/SampleRemoteMonitorIT.java b/sample-remote-monitor-plugin/src/test/java/org/opensearch/alerting/SampleRemoteMonitorIT.java index 2363324ac..e81d017cd 100644 --- a/sample-remote-monitor-plugin/src/test/java/org/opensearch/alerting/SampleRemoteMonitorIT.java +++ b/sample-remote-monitor-plugin/src/test/java/org/opensearch/alerting/SampleRemoteMonitorIT.java @@ -204,8 +204,8 @@ public void testSampleRemoteDocLevelMonitorWithDynamicMetadataUpdate() throws IO "triggers\":[{\"remote_monitor_trigger\":{\"id\":\"id\",\"name\":\"name\",\"severity\":\"1\"," + "\"actions\":[{\"id\":\"id\",\"name\":\"name\",\"destination_id\":\"destinationId\",\"message_template\":{\"source\":\"Hello World\"," + "\"lang\":\"mustache\"},\"throttle_enabled\":false,\"subject_template\":{\"source\":\"Hello World\",\"lang\":\"mustache\"}," + - "\"throttle\":{\"value\":60,\"unit\":\"MINUTES\"}}],\"size\":24,\"trigger\":\"BWhlbGxvCgEEdGVzdAM/gAAAAAAAAQAA\"}}]," + - "\"owner\":\"sample-remote-monitor-plugin\"}", "\"index1\", \"index2\""); + "\"throttle\":{\"value\":60,\"unit\":\"MINUTES\"}}],\"size\":24,\"trigger\":\"BWhlbGxvCgEEdGVzdAM/gAAAAAAAAQAA\"}}]" + + "}", "\"index1\", \"index2\""); makeRequest(client(), "PUT", "/_plugins/_alerting/monitors/" + monitorId, Map.of(), new StringEntity(updatedMonitor, ContentType.APPLICATION_JSON)); response = makeRequest(client(), "POST", "/_plugins/_alerting/monitors/" + monitorId + "/_execute", Map.of(), null);