Dry up more of index setting creation in tests (#95602)

Quick follow-up to #95569 of spots that I could automatically identify
and refactor, saving another 1.5k LoC in tests.
This commit is contained in:
Armin Braun 2023-04-27 17:11:48 +02:00 committed by GitHub
parent e752135f44
commit 4e69fa102f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
140 changed files with 406 additions and 1890 deletions

View file

@ -174,7 +174,7 @@ public class CCSDuelIT extends ESRestTestCase {
assertTrue(response.isAcknowledged());
int numShards = randomIntBetween(1, 5);
Settings settings = Settings.builder().put("index.number_of_shards", numShards).put("index.number_of_replicas", 0).build();
Settings settings = indexSettings(numShards, 0).build();
String mapping = """
{
"properties": {