mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-10 23:15:04 +00:00
Fix unit test for removal of x-pack aggregations. (#65)
This PR fixes the unit test which failed after removal of the x-pack aggregations #59. Signed-off-by: Peter Nied <petern@amazon.com>
This commit is contained in:
parent
b3186f958e
commit
f88b30f46d
@ -640,11 +640,6 @@ public class RestHighLevelClientTests extends ESTestCase {
|
||||
int expectedInternalAggregations = InternalAggregationTestCase.getDefaultNamedXContents().size();
|
||||
int expectedSuggestions = 3;
|
||||
|
||||
// Explicitly check for metrics from the analytics module because they aren't in InternalAggregationTestCase
|
||||
assertTrue(namedXContents.removeIf(e -> e.name.getPreferredName().equals("string_stats")));
|
||||
assertTrue(namedXContents.removeIf(e -> e.name.getPreferredName().equals("top_metrics")));
|
||||
assertTrue(namedXContents.removeIf(e -> e.name.getPreferredName().equals("inference")));
|
||||
|
||||
assertEquals(expectedInternalAggregations + expectedSuggestions, namedXContents.size());
|
||||
Map<Class<?>, Integer> categories = new HashMap<>();
|
||||
for (NamedXContentRegistry.Entry namedXContent : namedXContents) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user