test: fix testDefaultMetaFields after adding _seq_no

Original commit: elastic/x-pack-elasticsearch@97faea1dd1
This commit is contained in:
jaymode 2016-11-16 12:32:28 -05:00
parent 766b89b2fd
commit 782fb6ad41
1 changed files with 2 additions and 1 deletions

View File

@ -172,7 +172,7 @@ public class SecurityIndexSearcherWrapperUnitTests extends ESTestCase {
FieldSubsetReader.FieldSubsetDirectoryReader result =
(FieldSubsetReader.FieldSubsetDirectoryReader) securityIndexSearcherWrapper.wrap(esIn);
assertThat(result.getFieldNames().size(), equalTo(12));
assertThat(result.getFieldNames().size(), equalTo(13));
assertThat(result.getFieldNames().contains("_uid"), is(true));
assertThat(result.getFieldNames().contains("_id"), is(true));
assertThat(result.getFieldNames().contains("_version"), is(true));
@ -185,6 +185,7 @@ public class SecurityIndexSearcherWrapperUnitTests extends ESTestCase {
assertThat(result.getFieldNames().contains("_size"), is(true));
assertThat(result.getFieldNames().contains("_index"), is(true));
assertThat(result.getFieldNames().contains("_field_names"), is(true));
assertThat(result.getFieldNames().contains("_seq_no"), is(true));
// _all contains actual user data and therefor can't be included by default
assertThat(result.getFieldNames().contains("_all"), is(false));
}