Skip to content

Commit

Permalink
add test (#81634)
Browse files Browse the repository at this point in the history
add a xcontent filter test that will failed, when random to
`filterOnParser`. The test will fixed when jackson upgrade in
#80160
  • Loading branch information
weizijun authored Jan 13, 2022
1 parent 26c2ce0 commit d07d27e
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -456,4 +456,17 @@ public void testManyFilters() throws IOException, URISyntaxException {
testFilter(deep, deep, manyFilters, emptySet());
}
}

@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/pull/80160")
public void testExcludeWildCardFields() throws IOException {
Builder sample = builder -> builder.startObject()
.startObject("include")
.field("field1", "v1")
.field("field2", "v2")
.endObject()
.field("include2", "vv2")
.endObject();
Builder expected = builder -> builder.startObject().startObject("include").field("field1", "v1").endObject().endObject();
testFilter(expected, sample, singleton("include"), singleton("*.field2"));
}
}

0 comments on commit d07d27e

Please sign in to comment.