use of org.opensearch.client.opensearch.core.ClearScrollResponse in project opensearch-java by opensearch-project.
the class RequestTest method testErrorStatusCodeWithValidResponse.
@Test
public void testErrorStatusCodeWithValidResponse() throws IOException {
// Some endpoints return a faulty status code 404 with a valid response.
// Transports should first try to decode an error, and if they fail because of missing properties for
// the error type, then try to decode the regular request.
final ClearScrollResponse clearResponse = highLevelClient().clearScroll(b -> b.scrollId("DXF1ZXJ5QW5kRmV0Y2gBAAAAAAAAAD4WYm9laVYtZndUQlNsdDcwakFMNjU1QQ=="));
assertEquals(0, clearResponse.numFreed());
}
Aggregations