[TEST] Fix testRolloverConditionsNotMet to expect correct rollover index name

PR #21138 changed the target index name even if _rollover conditions are not met but missed to adapt this test.
This commit is contained in:
Yannick Welsch 2016-10-27 11:00:04 +02:00
parent a66c76eb44
commit 118913b553
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ public class RolloverIT extends ESIntegTestCase {
final RolloverResponse response = client().admin().indices().prepareRolloverIndex("test_alias") final RolloverResponse response = client().admin().indices().prepareRolloverIndex("test_alias")
.addMaxIndexAgeCondition(TimeValue.timeValueHours(4)).get(); .addMaxIndexAgeCondition(TimeValue.timeValueHours(4)).get();
assertThat(response.getOldIndex(), equalTo("test_index-0")); assertThat(response.getOldIndex(), equalTo("test_index-0"));
assertThat(response.getNewIndex(), equalTo("test_index-0")); assertThat(response.getNewIndex(), equalTo("test_index-000001"));
assertThat(response.isDryRun(), equalTo(false)); assertThat(response.isDryRun(), equalTo(false));
assertThat(response.isRolledOver(), equalTo(false)); assertThat(response.isRolledOver(), equalTo(false));
assertThat(response.getConditionStatus().size(), equalTo(1)); assertThat(response.getConditionStatus().size(), equalTo(1));