Skip to content

Commit

Permalink
Fix unit test for removal of x-pack aggregations. (#65)
Browse files Browse the repository at this point in the history
This PR fixes the unit test which failed after removal of the x-pack aggregations #59.

Signed-off-by: Peter Nied <petern@amazon.com>
  • Loading branch information
adnapibar authored and peternied committed Mar 13, 2021
1 parent b3186f9 commit f88b30f
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -640,11 +640,6 @@ public void testDefaultNamedXContents() {
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) {
Expand Down

0 comments on commit f88b30f

Please sign in to comment.