[TEST] remove needless index operation in SimpleRoutingIT

This commit is contained in:
javanna 2016-02-15 16:30:50 +01:00 committed by Luca Cavanna
parent 65f5cbe568
commit 5ff702b212
1 changed files with 0 additions and 4 deletions

View File

@ -200,10 +200,6 @@ public class SimpleRoutingIT extends ESIntegTestCase {
assertThat(client().prepareGet(indexOrAlias(), "type1", "1").setRouting("0").execute().actionGet().isExists(), equalTo(true));
}
logger.info("--> indexing with id [1], and routing [0]");
client().prepareIndex(indexOrAlias(), "type1", "1").setRouting("0").setSource("field", "value1").setRefresh(true).execute().actionGet();
logger.info("--> verifying get with no routing, should not find anything");
try {
client().prepareUpdate(indexOrAlias(), "type1", "1").setDoc("field", "value2").execute().actionGet();
fail("update with missing routing when routing is required should fail");