mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 15:17:30 -04:00
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:
parent
e752135f44
commit
4e69fa102f
140 changed files with 406 additions and 1890 deletions
|
@ -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": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue