mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-06 19:09:14 +00:00
[TEST] remove needless index operation in SimpleRoutingIT
This commit is contained in:
parent
65f5cbe568
commit
5ff702b212
@ -200,10 +200,6 @@ public class SimpleRoutingIT extends ESIntegTestCase {
|
|||||||
assertThat(client().prepareGet(indexOrAlias(), "type1", "1").setRouting("0").execute().actionGet().isExists(), equalTo(true));
|
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 {
|
try {
|
||||||
client().prepareUpdate(indexOrAlias(), "type1", "1").setDoc("field", "value2").execute().actionGet();
|
client().prepareUpdate(indexOrAlias(), "type1", "1").setDoc("field", "value2").execute().actionGet();
|
||||||
fail("update with missing routing when routing is required should fail");
|
fail("update with missing routing when routing is required should fail");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user