diff --git a/x-pack/plugin/esql/qa/server/single-node/src/javaRestTest/java/org/elasticsearch/xpack/esql/qa/single_node/TSDBRestEsqlIT.java b/x-pack/plugin/esql/qa/server/single-node/src/javaRestTest/java/org/elasticsearch/xpack/esql/qa/single_node/TSDBRestEsqlIT.java index 7379ad8ff1637..2fb279c434c4e 100644 --- a/x-pack/plugin/esql/qa/server/single-node/src/javaRestTest/java/org/elasticsearch/xpack/esql/qa/single_node/TSDBRestEsqlIT.java +++ b/x-pack/plugin/esql/qa/server/single-node/src/javaRestTest/java/org/elasticsearch/xpack/esql/qa/single_node/TSDBRestEsqlIT.java @@ -20,6 +20,7 @@ import org.elasticsearch.xpack.esql.CsvTestsDataLoader; import org.elasticsearch.xpack.esql.qa.rest.ProfileLogger; import org.elasticsearch.xpack.esql.qa.rest.RestEsqlTestCase; +import org.hamcrest.Matchers; import org.junit.ClassRule; import org.junit.Rule; @@ -58,7 +59,6 @@ public void testTimeSeriesQuerying() throws IOException { Request bulk = new Request("POST", "/k8s/_bulk"); bulk.addParameter("refresh", "true"); - bulk.addParameter("filter_path", "errors"); String bulkBody = new String( TSDBRestEsqlIT.class.getResourceAsStream("/tsdb-bulk-request.txt").readAllBytes(), @@ -66,7 +66,7 @@ public void testTimeSeriesQuerying() throws IOException { ); bulk.setJsonEntity(bulkBody); Response response = client().performRequest(bulk); - assertEquals("{\"errors\":false}", EntityUtils.toString(response.getEntity(), StandardCharsets.UTF_8)); + assertThat(EntityUtils.toString(response.getEntity(), StandardCharsets.UTF_8), Matchers.containsString("\"errors\":false")); RestEsqlTestCase.RequestObjectBuilder builder = RestEsqlTestCase.requestObjectBuilder() .query("FROM k8s | KEEP k8s.pod.name, @timestamp | SORT @timestamp, k8s.pod.name");