diff --git a/src/test/java/org/opensearch/flowframework/rest/FlowFrameworkRestApiIT.java b/src/test/java/org/opensearch/flowframework/rest/FlowFrameworkRestApiIT.java index 85805e637..d5989cc9a 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 {