From a1d729bad015b24c479feaf4d31b8923f5ee48aa Mon Sep 17 00:00:00 2001 From: Joshua Palis Date: Tue, 16 Apr 2024 15:45:12 +0000 Subject: [PATCH] Fixing integ test Signed-off-by: Joshua Palis --- .../rest/FlowFrameworkRestApiIT.java | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/src/test/java/org/opensearch/flowframework/rest/FlowFrameworkRestApiIT.java b/src/test/java/org/opensearch/flowframework/rest/FlowFrameworkRestApiIT.java index 894ee3010..b947fdd46 100644 --- a/src/test/java/org/opensearch/flowframework/rest/FlowFrameworkRestApiIT.java +++ b/src/test/java/org/opensearch/flowframework/rest/FlowFrameworkRestApiIT.java @@ -471,21 +471,9 @@ public void testDefaultSemanticSearchUseCaseWithFailureExpected() throws Excepti } assertEquals(RestStatus.OK, TestHelpers.restStatus(response)); - - // Distribution build contains all plugins, checking if plugins are part of the integration test cluster - List plugins = catPlugins(); - if (plugins.contains("opensearch-knn") && plugins.contains("opensearch-neural-search")) { - getAndAssertWorkflowStatus(client(), workflowId, State.PROVISIONING, ProvisioningProgress.IN_PROGRESS); - } else { - // expecting a failure since there is no neural-search plugin in cluster to provide text-embedding processor - getAndAssertWorkflowStatus(client(), workflowId, State.FAILED, ProvisioningProgress.FAILED); - String error = getAndWorkflowStatusError(client(), workflowId); - assertTrue( - error.contains( - "org.opensearch.flowframework.exception.WorkflowStepException during step create_ingest_pipeline, restStatus: BAD_REQUEST" - ) - ); - } + getAndAssertWorkflowStatus(client(), workflowId, State.FAILED, ProvisioningProgress.FAILED); + String error = getAndWorkflowStatusError(client(), workflowId); + assertTrue(error.contains("org.opensearch.flowframework.exception.WorkflowStepException during step create_ingest_pipeline")); } public void testAllDefaultUseCasesCreation() throws Exception {