Skip to content

Commit 104613c

Browse files
committed
update the test to use the same API as 0.90
so backports will be simpler for now
1 parent 4a3978d commit 104613c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/elasticsearch/indices/mapping/UpdateMappingTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public boolean apply(Object input) {
7878
assertThat(response.getCount(), equalTo((long) recCount));
7979

8080
logger.info("checking all the fields are in the mappings");
81-
String source = client().admin().indices().prepareGetMappings("test").setTypes("type").get().getMappings().get("test").get("type").source().string();
81+
String source = client().admin().cluster().prepareState().get().getState().getMetaData().getIndices().get("test").getMappings().get("type").source().string();
8282
for (int rec = 0; rec < recCount; rec++) {
8383
assertThat(source, containsString("\"field" + rec + "\""));
8484
}

0 commit comments

Comments
 (0)