Test: fix exception text assert due to change in es core

Original commit: elastic/x-pack-elasticsearch@c9e711f8c9
This commit is contained in:
jaymode 2015-06-24 11:45:02 -04:00
parent d65bfd1721
commit a7be4867c1
1 changed files with 1 additions and 3 deletions

View File

@ -172,9 +172,7 @@ public class IndicesResolverIntegrationTests extends ShieldIntegrationTest {
.add(Requests.searchRequest())
.add(Requests.searchRequest("test4")).get();
assertReturnedIndices(multiSearchResponse.getResponses()[0].getResponse(), "test1", "test2", "test3");
// FIXME this returns less information than before elasticsearch 2.0. We used to get the actual name of the index that is
// missing but now we only get a generic exception
assertThat(multiSearchResponse.getResponses()[1].getFailureMessage(), equalTo("IndexMissingException[no such index]"));
assertThat(multiSearchResponse.getResponses()[1].getFailure().toString(), equalTo("[test4] no such index"));
}
@Test(expected = IndexMissingException.class)