Skip to content

Commit

Permalink
[CI] Auto commit changes from spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticsearchmachine committed Dec 19, 2024
1 parent 6cc76ac commit e77f47c
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -781,8 +781,7 @@ public void testLimitOfContextMappings() throws Throwable {
})));
assertTrue(
e.getMessage(),
e.getMessage()
.contains("Limit of completion field contexts [" + COMPLETION_CONTEXTS_LIMIT + "] has been exceeded")
e.getMessage().contains("Limit of completion field contexts [" + COMPLETION_CONTEXTS_LIMIT + "] has been exceeded")
);

// test pre-8 deprecation warnings
Expand All @@ -797,9 +796,15 @@ public void testLimitOfContextMappings() throws Throwable {
}
b.endArray();
}));
assertCriticalWarnings("You have defined more than [" + COMPLETION_CONTEXTS_LIMIT + "] completion contexts" +
" in the mapping for field [field]. The maximum allowed number of completion contexts in a mapping will be limited to " +
"[" + COMPLETION_CONTEXTS_LIMIT + "] starting in version [8.0].");
assertCriticalWarnings(
"You have defined more than ["
+ COMPLETION_CONTEXTS_LIMIT
+ "] completion contexts"
+ " in the mapping for field [field]. The maximum allowed number of completion contexts in a mapping will be limited to "
+ "["
+ COMPLETION_CONTEXTS_LIMIT
+ "] starting in version [8.0]."
);
}

private static CompletionFieldMapper.CompletionInputMetadata randomCompletionMetadata() {
Expand Down

0 comments on commit e77f47c

Please sign in to comment.