diff --git a/test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestCase.java b/test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestCase.java index 4fe85b2875ec6..eb255be092157 100644 --- a/test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestCase.java +++ b/test/framework/src/main/java/org/elasticsearch/test/rest/ESRestTestCase.java @@ -2376,7 +2376,7 @@ public static void setIgnoredErrorResponseCodes(Request request, RestStatus... r } public static void addXContentBody(Request request, ToXContent body) throws IOException { - final var xContentType = randomFrom(XContentType.JSON, XContentType.CBOR, XContentType.YAML, XContentType.SMILE); + final var xContentType = XContentType.JSON; final var bodyBytes = XContentHelper.toXContent(body, xContentType, EMPTY_PARAMS, randomBoolean()); request.setEntity( new InputStreamEntity(