Skip to content

Commit b1daeea

Browse files
committed
getting rid of code to remove _doc from effective mappings
1 parent 7a11b6a commit b1daeea

File tree

1 file changed

+18
-15
lines changed
  • modules/data-streams/src/internalClusterTest/java/org/elasticsearch/datastreams

1 file changed

+18
-15
lines changed

modules/data-streams/src/internalClusterTest/java/org/elasticsearch/datastreams/DataStreamIT.java

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2530,22 +2530,25 @@ public void testGetEffectiveMappings() throws Exception {
25302530
Map<String, Object> effectiveMappingMap = XContentHelper.convertToMap(effectiveMappings.uncompressed(), true, XContentType.JSON)
25312531
.v2();
25322532
Map<String, Object> expectedEffectiveMappingMap = Map.of(
2533-
"dynamic",
2534-
"strict",
2535-
"_data_stream_timestamp",
2536-
Map.of("enabled", true),
2537-
"properties",
2533+
"_doc",
25382534
Map.of(
2539-
"@timestamp",
2540-
Map.of("type", "date"),
2541-
"field1",
2542-
Map.of("type", "keyword"),
2543-
"field2",
2544-
Map.of("type", "text"),
2545-
"field3",
2546-
Map.of("type", "text"),
2547-
"field4",
2548-
Map.of("type", "keyword")
2535+
"dynamic",
2536+
"strict",
2537+
"_data_stream_timestamp",
2538+
Map.of("enabled", true),
2539+
"properties",
2540+
Map.of(
2541+
"@timestamp",
2542+
Map.of("type", "date"),
2543+
"field1",
2544+
Map.of("type", "keyword"),
2545+
"field2",
2546+
Map.of("type", "text"),
2547+
"field3",
2548+
Map.of("type", "text"),
2549+
"field4",
2550+
Map.of("type", "keyword")
2551+
)
25492552
)
25502553
);
25512554
assertThat(effectiveMappingMap, equalTo(expectedEffectiveMappingMap));

0 commit comments

Comments
 (0)