From a7be4867c1e197e9accc07b38bab37561383c477 Mon Sep 17 00:00:00 2001 From: jaymode Date: Wed, 24 Jun 2015 11:45:02 -0400 Subject: [PATCH] Test: fix exception text assert due to change in es core Original commit: elastic/x-pack-elasticsearch@c9e711f8c929f56606569817b2eff34c7debe88b --- .../indicesresolver/IndicesResolverIntegrationTests.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/test/java/org/elasticsearch/shield/authz/indicesresolver/IndicesResolverIntegrationTests.java b/src/test/java/org/elasticsearch/shield/authz/indicesresolver/IndicesResolverIntegrationTests.java index 6714ae7bc46..d7a0bd5022f 100644 --- a/src/test/java/org/elasticsearch/shield/authz/indicesresolver/IndicesResolverIntegrationTests.java +++ b/src/test/java/org/elasticsearch/shield/authz/indicesresolver/IndicesResolverIntegrationTests.java @@ -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)