Skip to content

Commit cbeed7a

Browse files
Fix failing test
Signed-off-by: rithin-pullela-aws <rithinp@amazon.com>
1 parent 0c3955d commit cbeed7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/src/test/java/org/opensearch/ml/rest/RestQueryPlanningToolIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ public void setup() throws IOException, InterruptedException {
7474
if (AWS_ACCESS_KEY_ID == null) {
7575
return;
7676
}
77+
// enable agentic search
78+
updateClusterSettings(ML_COMMONS_AGENTIC_SEARCH_ENABLED.getKey(), true);
7779
queryPlanningModelId = registerQueryPlanningModel();
7880
}
7981

@@ -92,8 +94,6 @@ public void testAgentWithQueryPlanningTool_DefaultPrompt() throws IOException {
9294
assertNotNull(agentId);
9395

9496
String query = "{\"parameters\": {\"query_text\": \"How many iris flowers of type setosa are there?\"}}";
95-
// enable agentic search
96-
updateClusterSettings(ML_COMMONS_AGENTIC_SEARCH_ENABLED.getKey(), true);
9797
Response response = executeAgent(agentId, query);
9898
String responseBody = TestHelper.httpEntityToString(response.getEntity());
9999

0 commit comments

Comments
 (0)