Skip to content

Commit 38e8a95

Browse files
authored
[8.19] Fix failing MixedClusterEsqlSpecIT BWC tests. (#132250)
1 parent 3736807 commit 38e8a95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/esql/qa/testFixtures/src/main/java/org/elasticsearch/xpack/esql/CsvTestsDataLoader.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ public static void deleteInferenceEndpoints(RestClient client) throws IOExceptio
348348

349349
try (InputStream content = response.getEntity().getContent()) {
350350
XContentType xContentType = XContentType.fromMediaType(response.getEntity().getContentType().getValue());
351-
Map<String, ?> responseMap = XContentHelper.convertToMap(xContentType.xContent(), content, false);
352-
List<Map<String, ?>> endpoints = (List<Map<String, ?>>) responseMap.get("endpoints");
351+
Map<String, Object> responseMap = XContentHelper.convertToMap(xContentType.xContent(), content, false);
352+
List<Map<String, ?>> endpoints = (List<Map<String, ?>>) responseMap.getOrDefault("endpoints", List.of());
353353
for (Map<String, ?> endpoint : endpoints) {
354354
String inferenceId = (String) endpoint.get("inference_id");
355355
String taskType = (String) endpoint.get("task_type");

0 commit comments

Comments
 (0)