update the test to use the same API as 0.90

so backports will be simpler for now
This commit is contained in:
Shay Banon 2013-12-07 19:31:33 +01:00
parent 4a3978d1b7
commit 104613c0b9
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ public class UpdateMappingTests extends ElasticsearchIntegrationTest {
assertThat(response.getCount(), equalTo((long) recCount));
logger.info("checking all the fields are in the mappings");
String source = client().admin().indices().prepareGetMappings("test").setTypes("type").get().getMappings().get("test").get("type").source().string();
String source = client().admin().cluster().prepareState().get().getState().getMetaData().getIndices().get("test").getMappings().get("type").source().string();
for (int rec = 0; rec < recCount; rec++) {
assertThat(source, containsString("\"field" + rec + "\""));
}