test: add awaits fix to FLS field stats tests

See elastic/elasticsearch#2120

Original commit: elastic/x-pack-elasticsearch@fc7950bf65
This commit is contained in:
jaymode 2016-04-27 13:55:59 -04:00
parent 97d3230ac3
commit f4f156b351
1 changed files with 2 additions and 0 deletions

View File

@ -483,6 +483,8 @@ public class FieldLevelSecurityTests extends ShieldIntegTestCase {
assertThat(response.getResponses()[0].getResponse().getSource().get("field2").toString(), equalTo("value2"));
}
// norelease - we need to fix the issue so that only fields a user can see are returned
@AwaitsFix(bugUrl = "https://github.com/elastic/x-plugins/issues/2120")
public void testFieldStatsApi() throws Exception {
assertAcked(client().admin().indices().prepareCreate("test")
.addMapping("type1", "field1", "type=text", "field2", "type=text", "field3", "type=text")