fix thrift test to take into account that index can return CREATED status code now
This commit is contained in:
parent
60578aef4d
commit
dab23a4d51
|
@ -72,7 +72,7 @@ public class SimpleThriftTests {
|
|||
.endObject().copiedBytes()));
|
||||
RestResponse response = client.execute(request);
|
||||
Map<String, Object> map = parseBody(response);
|
||||
assertThat(response.getStatus(), equalTo(Status.OK));
|
||||
assertThat(response.getStatus(), equalTo(Status.CREATED));
|
||||
assertThat(map.get("ok").toString(), equalTo("true"));
|
||||
assertThat(map.get("_index").toString(), equalTo("test"));
|
||||
assertThat(map.get("_type").toString(), equalTo("type1"));
|
||||
|
|
Loading…
Reference in New Issue