From 770fe161a99dfe41a77ae3c5df7907cd0da01b98 Mon Sep 17 00:00:00 2001 From: monusingh-1 Date: Fri, 3 May 2024 22:54:00 +0530 Subject: [PATCH] test Signed-off-by: monusingh-1 --- .../UpdateAutoFollowPatternRequest.kt | 10 ++-- .../replication/util/ValidationUtil.kt | 23 ++++++++++ .../integ/rest/UpdateAutoFollowPatternIT.kt | 46 +++++++++++++++++++ 3 files changed, 76 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/org/opensearch/replication/action/autofollow/UpdateAutoFollowPatternRequest.kt b/src/main/kotlin/org/opensearch/replication/action/autofollow/UpdateAutoFollowPatternRequest.kt index 165ede8b..7f43279a 100644 --- a/src/main/kotlin/org/opensearch/replication/action/autofollow/UpdateAutoFollowPatternRequest.kt +++ b/src/main/kotlin/org/opensearch/replication/action/autofollow/UpdateAutoFollowPatternRequest.kt @@ -25,6 +25,7 @@ import org.opensearch.core.xcontent.ToXContent import org.opensearch.core.xcontent.ToXContentObject import org.opensearch.core.xcontent.XContentBuilder import org.opensearch.core.xcontent.XContentParser +import org.opensearch.replication.util.ValidationUtil.validatePattern import java.util.Collections import java.util.function.BiConsumer import java.util.function.BiFunction @@ -110,11 +111,14 @@ class UpdateAutoFollowPatternRequest: AcknowledgedRequest