From 99b3130acb26133922e029336042d3dfdc0652c8 Mon Sep 17 00:00:00 2001 From: zane-neo Date: Thu, 5 Dec 2024 09:47:36 +0800 Subject: [PATCH] fix failure IT Signed-off-by: zane-neo --- .../src/test/java/org/opensearch/ml/tools/ListIndexToolIT.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/src/test/java/org/opensearch/ml/tools/ListIndexToolIT.java b/plugin/src/test/java/org/opensearch/ml/tools/ListIndexToolIT.java index 02a9c51f7e..0fa7d7b681 100644 --- a/plugin/src/test/java/org/opensearch/ml/tools/ListIndexToolIT.java +++ b/plugin/src/test/java/org/opensearch/ml/tools/ListIndexToolIT.java @@ -13,6 +13,7 @@ import java.util.List; import java.util.Objects; +import org.apache.commons.lang3.StringUtils; import org.junit.Before; import org.opensearch.client.Response; import org.opensearch.common.settings.Settings; @@ -39,7 +40,7 @@ public void setUpCluster() throws Exception { private List createIndices(int count) throws IOException { List indices = new ArrayList<>(); for (int i = 0; i < count; i++) { - String indexName = "test" + randomAlphaOfLength(5); + String indexName = "test" + StringUtils.toRootLowerCase(randomAlphaOfLength(5)); createIndex(indexName, Settings.EMPTY); indices.add(indexName); }