[TEST] Don't wrap query in wrapper query
This is caused by a breaking change in https://github.com/elastic/elasticsearch/pull/14304 Original commit: elastic/x-pack-elasticsearch@b376ad2042
This commit is contained in:
parent
f16dabc2bb
commit
c74ae7aad2
|
@ -169,8 +169,8 @@ public class SearchTransformTests extends ESIntegTestCase {
|
|||
|
||||
// create a bad request
|
||||
SearchRequest request = Requests.searchRequest("idx").source(
|
||||
new SearchSourceBuilder().query(QueryBuilders.wrapperQuery(jsonBuilder().startObject().startObject("query")
|
||||
.startObject("_unknown_query_").endObject().endObject().endObject().bytes())));
|
||||
new SearchSourceBuilder().query(QueryBuilders.wrapperQuery(jsonBuilder().startObject()
|
||||
.startObject("_unknown_query_").endObject().endObject().bytes())));
|
||||
SearchTransform searchTransform = TransformBuilders.searchTransform(request).build();
|
||||
ExecutableSearchTransform transform = new ExecutableSearchTransform(searchTransform, logger, ClientProxy.of(client()), null);
|
||||
|
||||
|
|
Loading…
Reference in New Issue