From 104613c0b95b43c6f532af9df12a32df491de1a7 Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Sat, 7 Dec 2013 19:31:33 +0100 Subject: [PATCH] update the test to use the same API as 0.90 so backports will be simpler for now --- .../org/elasticsearch/indices/mapping/UpdateMappingTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/elasticsearch/indices/mapping/UpdateMappingTests.java b/src/test/java/org/elasticsearch/indices/mapping/UpdateMappingTests.java index 4d20982942d..79bf1148d3a 100644 --- a/src/test/java/org/elasticsearch/indices/mapping/UpdateMappingTests.java +++ b/src/test/java/org/elasticsearch/indices/mapping/UpdateMappingTests.java @@ -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 + "\"")); }