Skip to content

Commit

Permalink
fix bwc test failure
Browse files Browse the repository at this point in the history
Signed-off-by: Rupal Mahajan <[email protected]>
  • Loading branch information
rupal-bq committed Oct 20, 2022
1 parent 78a6726 commit 7d33332
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7d33332

Please sign in to comment.