Skip to content

Commit

Permalink
Mappings: Fix Get field mapping api with pretty flag
Browse files Browse the repository at this point in the history
Fix assertion only check ":{"

Closes elastic#6552
  • Loading branch information
johtani committed Dec 9, 2014
1 parent 75bd751 commit 4f15e3d
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -164,7 +164,7 @@ public void simpleGetFieldMappingsWithPretty() throws Exception {
responseBuilder.endObject();
String responseStrings = responseBuilder.string();

assertTrue(responseStrings.contains("\"mapping\" : {\n"));
assertFalse(responseStrings.contains(":{"));

params.put("pretty", "false");

Expand All @@ -175,7 +175,7 @@ public void simpleGetFieldMappingsWithPretty() throws Exception {
responseBuilder.endObject();
responseStrings = responseBuilder.string();

assertFalse(responseStrings.contains("\"mapping\" : {\n"));
assertTrue(responseStrings.contains(":{"));

}
}

0 comments on commit 4f15e3d

Please sign in to comment.