From 80cd1be3df3eb9032a907b2aab211655b3abbfc1 Mon Sep 17 00:00:00 2001 From: Sanjay Kumar Date: Fri, 12 Apr 2024 13:59:22 +0530 Subject: [PATCH] Addition of test case on valid indexPatterns and Addresal of review comments Signed-off-by: Sanjay Kumar --- .../UpdateAutoFollowPatternRequest.kt | 4 ++-- .../replication/util/ValidationUtil.kt | 2 +- .../integ/rest/UpdateAutoFollowPatternIT.kt | 19 +++++++++++++++++++ 3 files changed, 22 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 d145eda2..7ee53c83 100644 --- a/src/main/kotlin/org/opensearch/replication/action/autofollow/UpdateAutoFollowPatternRequest.kt +++ b/src/main/kotlin/org/opensearch/replication/action/autofollow/UpdateAutoFollowPatternRequest.kt @@ -14,7 +14,7 @@ package org.opensearch.replication.action.autofollow import org.opensearch.replication.action.index.ReplicateIndexRequest import org.opensearch.replication.metadata.store.KEY_SETTINGS import org.opensearch.replication.util.ValidationUtil.validateName -import org.opensearch.replication.util.ValidationUtil.validatePattern +import org.opensearch.replication.util.ValidationUtil.validateAutoFollowPattern import org.opensearch.action.ActionRequestValidationException import org.opensearch.action.support.master.AcknowledgedRequest import org.opensearch.core.ParseField @@ -118,7 +118,7 @@ class UpdateAutoFollowPatternRequest: AcknowledgedRequest