Skip to content

Commit

Permalink
fix forbidden APIs
Browse files Browse the repository at this point in the history
Signed-off-by: Shivansh Arora <[email protected]>
  • Loading branch information
shiv0408 committed Jun 11, 2024
1 parent 9469b7c commit 145558a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.Supplier;
Expand Down Expand Up @@ -634,7 +635,7 @@ public void testIndicesRoutingDiffWhenIndexDeletedAndAdded() {
public void testGetAsyncIndexMetadataReadAction() throws Exception {
String indexName = randomAlphaOfLength(randomIntBetween(1, 50));
ClusterState clusterState = createClusterState(indexName);
String uploadedFileName = String.format("index-routing/" + indexName);
String uploadedFileName = String.format(Locale.ROOT, "index-routing/" + indexName);
Index index = new Index(indexName, "uuid-01");

LatchedActionListener<IndexRoutingTable> listener = mock(LatchedActionListener.class);
Expand All @@ -658,7 +659,7 @@ public void testGetAsyncIndexMetadataReadAction() throws Exception {
public void testGetAsyncIndexMetadataReadActionFailureForIncorrectIndex() throws Exception {
String indexName = randomAlphaOfLength(randomIntBetween(1, 50));
ClusterState clusterState = createClusterState(indexName);
String uploadedFileName = String.format("index-routing/" + indexName);
String uploadedFileName = String.format(Locale.ROOT, "index-routing/" + indexName);
Index index = new Index("incorrect-index", "uuid-01");

LatchedActionListener<IndexRoutingTable> listener = mock(LatchedActionListener.class);
Expand All @@ -681,8 +682,7 @@ public void testGetAsyncIndexMetadataReadActionFailureForIncorrectIndex() throws

public void testGetAsyncIndexMetadataReadActionFailureInBlobRepo() throws Exception {
String indexName = randomAlphaOfLength(randomIntBetween(1, 50));
ClusterState clusterState = createClusterState(indexName);
String uploadedFileName = String.format("index-routing/" + indexName);
String uploadedFileName = String.format(Locale.ROOT,"index-routing/" + indexName);
Index index = new Index(indexName, "uuid-01");

LatchedActionListener<IndexRoutingTable> listener = mock(LatchedActionListener.class);
Expand Down

0 comments on commit 145558a

Please sign in to comment.