Skip to content

Commit 2232b35

Browse files
committed
reduce check scope
1 parent 95aed03 commit 2232b35

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

x-pack/plugin/esql/qa/server/src/main/java/org/elasticsearch/xpack/esql/qa/rest/FieldExtractorTestCase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
import static org.elasticsearch.test.ListMatcher.matchesList;
5353
import static org.elasticsearch.test.MapMatcher.assertMap;
5454
import static org.elasticsearch.test.MapMatcher.matchesMap;
55-
import static org.elasticsearch.xpack.esql.qa.rest.RestEsqlTestCase.entityToMap;
55+
import static org.elasticsearch.xpack.esql.qa.rest.RestEsqlTestCase.entityToMapNoPartialCheck;
5656
import static org.elasticsearch.xpack.esql.qa.rest.RestEsqlTestCase.runEsqlSync;
5757
import static org.hamcrest.Matchers.closeTo;
5858
import static org.hamcrest.Matchers.containsString;
@@ -1738,7 +1738,7 @@ private static void index(String name, String... docs) throws IOException {
17381738
}
17391739
request.setJsonEntity(bulk.toString());
17401740
Response response = client().performRequest(request);
1741-
Map<String, Object> result = entityToMap(response.getEntity(), XContentType.JSON);
1741+
Map<String, Object> result = entityToMapNoPartialCheck(response.getEntity(), XContentType.JSON);
17421742
assertMap(result, matchesMap().extraOk().entry("errors", false));
17431743
}
17441744

x-pack/plugin/esql/qa/server/src/main/java/org/elasticsearch/xpack/esql/qa/rest/RequestIndexFilteringTestCase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
import static org.elasticsearch.test.ListMatcher.matchesList;
3131
import static org.elasticsearch.test.MapMatcher.matchesMap;
32-
import static org.elasticsearch.xpack.esql.qa.rest.RestEsqlTestCase.entityToMap;
32+
import static org.elasticsearch.xpack.esql.qa.rest.RestEsqlTestCase.entityToMapNoPartialCheck;
3333
import static org.elasticsearch.xpack.esql.qa.rest.RestEsqlTestCase.requestObjectBuilder;
3434
import static org.hamcrest.Matchers.allOf;
3535
import static org.hamcrest.Matchers.anyOf;
@@ -279,7 +279,7 @@ protected void indexTimestampDataForClient(RestClient client, int docs, String i
279279
}""".replace("%differentiator_field_name%", differentiatorFieldName));
280280
Response response = client.performRequest(createIndex);
281281
assertThat(
282-
entityToMap(response.getEntity(), XContentType.JSON),
282+
entityToMapNoPartialCheck(response.getEntity(), XContentType.JSON),
283283
matchesMap().entry("shards_acknowledged", true).entry("index", indexName).entry("acknowledged", true)
284284
);
285285

x-pack/plugin/esql/qa/server/src/main/java/org/elasticsearch/xpack/esql/qa/rest/RestEsqlTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1855,7 +1855,7 @@ protected void indexTimestampData(int shards) throws IOException {
18551855
}""".replace("%shards%", Integer.toString(shards)));
18561856
Response response = client().performRequest(createIndex);
18571857
assertThat(
1858-
entityToMap(response.getEntity(), XContentType.JSON),
1858+
entityToMapNoPartialCheck(response.getEntity(), XContentType.JSON),
18591859
matchesMap().entry("shards_acknowledged", true).entry("index", testIndexName()).entry("acknowledged", true)
18601860
);
18611861

0 commit comments

Comments
 (0)