Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andreidan committed Oct 16, 2024
1 parent 997b4ef commit f19c257
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ public void testEmptyDocumentMapper() {
assertMap(
metadataMappers,
matchesList().item(DataStreamTimestampFieldMapper.class)
.item(DataTierFieldMapper.class)
.item(DocCountFieldMapper.class)
.item(FieldNamesFieldMapper.class)
.item(IgnoredFieldMapper.class)
Expand Down Expand Up @@ -352,6 +353,7 @@ public void testEmptyDocumentMapper() {
.item(RoutingFieldMapper.CONTENT_TYPE)
.item(SeqNoFieldMapper.CONTENT_TYPE)
.item(SourceFieldMapper.CONTENT_TYPE)
.item(DataTierFieldMapper.CONTENT_TYPE)
.item(VersionFieldMapper.CONTENT_TYPE)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import org.elasticsearch.index.IndexVersion;
import org.elasticsearch.index.IndexVersions;
import org.elasticsearch.index.mapper.DataStreamTimestampFieldMapper;
import org.elasticsearch.index.mapper.DataTierFieldMapper;
import org.elasticsearch.index.mapper.DocCountFieldMapper;
import org.elasticsearch.index.mapper.FieldNamesFieldMapper;
import org.elasticsearch.index.mapper.IdFieldMapper;
Expand Down Expand Up @@ -81,7 +82,7 @@ public Map<String, MetadataFieldMapper.TypeParser> getMetadataMappers() {
}
});

private static final String[] EXPECTED_METADATA_FIELDS = new String[] {
private static final String[] EXPECTED_METADATA_FIELDS = new String[]{
IgnoredFieldMapper.NAME,
IdFieldMapper.NAME,
RoutingFieldMapper.NAME,
Expand All @@ -96,7 +97,8 @@ public Map<String, MetadataFieldMapper.TypeParser> getMetadataMappers() {
SeqNoFieldMapper.NAME,
DocCountFieldMapper.NAME,
DataStreamTimestampFieldMapper.NAME,
FieldNamesFieldMapper.NAME };
DataTierFieldMapper.NAME,
FieldNamesFieldMapper.NAME};

@UpdateForV9(owner = UpdateForV9.Owner.SEARCH_FOUNDATIONS)
@AwaitsFix(bugUrl = "test is referencing 7.x index versions so needs to be updated for 9.0 bump")
Expand Down

0 comments on commit f19c257

Please sign in to comment.