From cdbbc11cd13ffadbeebe75fc123b6d392d5d98ea Mon Sep 17 00:00:00 2001 From: Joshua Palis Date: Tue, 9 May 2023 23:26:57 +0000 Subject: [PATCH] Fixing wipeAllODFEIndices Signed-off-by: Joshua Palis --- src/test/java/org/opensearch/jobscheduler/ODFERestTestCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/opensearch/jobscheduler/ODFERestTestCase.java b/src/test/java/org/opensearch/jobscheduler/ODFERestTestCase.java index 3ba3d881..d204f26c 100644 --- a/src/test/java/org/opensearch/jobscheduler/ODFERestTestCase.java +++ b/src/test/java/org/opensearch/jobscheduler/ODFERestTestCase.java @@ -84,7 +84,7 @@ protected RestClient buildClient(Settings settings, HttpHost[] hosts) throws IOE @After protected void wipeAllODFEIndices() throws IOException { Response response = adminClient().performRequest(new Request("GET", "/_cat/indices?format=json&expand_wildcards=all")); - XContentType xContentType = XContentType.fromMediaType(response.getEntity().getContentType()); + XContentType xContentType = XContentType.fromMediaType(response.getEntity().getContentType().getValue()); try ( XContentParser parser = xContentType.xContent() .createParser(