diff --git a/reports-scheduler/src/test/kotlin/org/opensearch/integTest/PluginRestTestCase.kt b/reports-scheduler/src/test/kotlin/org/opensearch/integTest/PluginRestTestCase.kt index 7e5bc6ae..99f14ddc 100644 --- a/reports-scheduler/src/test/kotlin/org/opensearch/integTest/PluginRestTestCase.kt +++ b/reports-scheduler/src/test/kotlin/org/opensearch/integTest/PluginRestTestCase.kt @@ -6,7 +6,7 @@ package org.opensearch.integTest import com.google.gson.JsonObject -import org.apache.http.HttpHost +import org.apache.hc.core5.http.HttpHost import org.junit.After import org.junit.AfterClass import org.junit.Before @@ -61,7 +61,7 @@ abstract class PluginRestTestCase : OpenSearchRestTestCase() { open fun wipeAllODFEIndices() { if (preserveODFEIndicesAfterTest()) return val response = client().performRequest(Request("GET", "/_cat/indices?format=json&expand_wildcards=all")) - val xContentType = XContentType.fromMediaType(response.entity.contentType.value) + val xContentType = XContentType.fromMediaType(response.entity.contentType) xContentType.xContent().createParser( NamedXContentRegistry.EMPTY, DeprecationHandler.THROW_UNSUPPORTED_OPERATION, response.entity.content