mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
[TEST] Use lowercase index names in test
This commit is contained in:
parent
5f9bac435e
commit
630544cc69
@ -33,6 +33,7 @@ import java.nio.charset.StandardCharsets;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.util.HashSet;
|
||||
import java.util.Locale;
|
||||
import java.util.Set;
|
||||
|
||||
import static org.elasticsearch.test.ElasticsearchIntegrationTest.*;
|
||||
@ -81,10 +82,10 @@ public class IndexTemplateFileLoadingTests extends ElasticsearchIntegrationTest
|
||||
|
||||
@Test
|
||||
public void testThatLoadingTemplateFromFileWorks() throws Exception {
|
||||
final int iters = scaledRandomIntBetween(5, 20);
|
||||
final int iters = scaledRandomIntBetween(1, 5);
|
||||
Set<String> indices = new HashSet<>();
|
||||
for (int i = 0; i < iters; i++) {
|
||||
String indexName = "foo" + randomRealisticUnicodeOfLengthBetween(0, 5);
|
||||
String indexName = "foo" + randomAsciiOfLengthBetween(0, 5).toLowerCase(Locale.ROOT);
|
||||
if (indices.contains(indexName)) {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user