From ba17401545569e17bee19a9f3529997f19986df9 Mon Sep 17 00:00:00 2001 From: Varun Jain Date: Tue, 26 Dec 2023 11:55:09 -0800 Subject: [PATCH] Bug Fix Signed-off-by: Varun Jain --- .../org/opensearch/neuralsearch/bwc/SemanticSearch.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/qa/rolling-upgrade/src/test/java/org/opensearch/neuralsearch/bwc/SemanticSearch.java b/qa/rolling-upgrade/src/test/java/org/opensearch/neuralsearch/bwc/SemanticSearch.java index a3f37e72b..e91bd5834 100644 --- a/qa/rolling-upgrade/src/test/java/org/opensearch/neuralsearch/bwc/SemanticSearch.java +++ b/qa/rolling-upgrade/src/test/java/org/opensearch/neuralsearch/bwc/SemanticSearch.java @@ -9,9 +9,8 @@ import java.nio.file.Files; import java.nio.file.Path; import java.util.Map; -import java.util.ArrayList; +import org.opensearch.neuralsearch.TestUtils; import static org.opensearch.neuralsearch.TestUtils.NODES_BWC_CLUSTER; -import static org.opensearch.neuralsearch.TestUtils.getModelId; import static org.opensearch.neuralsearch.TestUtils.TEXT_EMBEDDING_PROCESSOR; import org.opensearch.neuralsearch.query.NeuralQueryBuilder; @@ -97,8 +96,8 @@ protected void createPipelineProcessor(String modelId, String pipelineName, Proc } private String getModelId(String pipelineName){ - Map pipeline = getIngestionPipeline(PIPELINE_NAME); + Map pipeline = getIngestionPipeline(pipelineName); assertNotNull(pipeline); - return getModelId(pipeline,TEXT_EMBEDDING_PROCESSOR); + return TestUtils.getModelId(pipeline,TEXT_EMBEDDING_PROCESSOR); } }