Fix failing delete index test

This test is failing because delete /{index} requests no longer support
index matching an alias. This commit removes testing such requests again
aliases.

Closes #25284
This commit is contained in:
Jason Tedor 2017-06-18 15:32:43 -04:00
parent 3f9f713b44
commit 4c28e781dd
1 changed files with 1 additions and 2 deletions

View File

@ -119,7 +119,6 @@ import static org.hamcrest.Matchers.greaterThan;
import static org.hamcrest.Matchers.hasItem; import static org.hamcrest.Matchers.hasItem;
@ClusterScope(scope = Scope.SUITE, numClientNodes = 1, minNumDataNodes = 2) @ClusterScope(scope = Scope.SUITE, numClientNodes = 1, minNumDataNodes = 2)
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/25284")
public class IndicesRequestIT extends ESIntegTestCase { public class IndicesRequestIT extends ESIntegTestCase {
private final List<String> indices = new ArrayList<>(); private final List<String> indices = new ArrayList<>();
@ -488,7 +487,7 @@ public class IndicesRequestIT extends ESIntegTestCase {
public void testDeleteIndex() { public void testDeleteIndex() {
interceptTransportActions(DeleteIndexAction.NAME); interceptTransportActions(DeleteIndexAction.NAME);
String[] randomIndicesOrAliases = randomUniqueIndicesOrAliases(); String[] randomIndicesOrAliases = randomUniqueIndices();
DeleteIndexRequest deleteIndexRequest = new DeleteIndexRequest(randomIndicesOrAliases); DeleteIndexRequest deleteIndexRequest = new DeleteIndexRequest(randomIndicesOrAliases);
assertAcked(internalCluster().coordOnlyNodeClient().admin().indices().delete(deleteIndexRequest).actionGet()); assertAcked(internalCluster().coordOnlyNodeClient().admin().indices().delete(deleteIndexRequest).actionGet());