Mute DateHistogramAggregatorTests.testAsSubAgg

(cherry picked from commit 4d050a7a6438a7d102eeef9e03a7d79565bddab7)
This commit is contained in:
Mark Vieira 2020-05-26 10:54:11 -07:00
parent 920677af6f
commit 92e127e90d
No known key found for this signature in database
GPG Key ID: CA947EF7E6D4B105
1 changed files with 2 additions and 1 deletions

View File

@ -171,6 +171,7 @@ public class DateHistogramAggregatorTests extends AggregatorTestCase {
);
}
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/57168")
public void testAsSubAgg() throws IOException {
KeywordFieldMapper.KeywordFieldType k1ft = new KeywordFieldMapper.KeywordFieldType();
k1ft.setName("k1");
@ -230,7 +231,7 @@ public class DateHistogramAggregatorTests extends AggregatorTestCase {
assertThat(ak1adh.getBuckets().stream().map(bucket -> bucket.getKey().toString()).collect(toList()),
equalTo(org.elasticsearch.common.collect.List.of("2020-01-01T00:00Z", "2021-01-01T00:00Z")
));
StringTerms.Bucket b = terms.getBucketByKey("b");
StringTerms bk1 = b.getAggregations().get("k1");
StringTerms.Bucket bk1a = bk1.getBucketByKey("a");