File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
server/src/test/java/org/elasticsearch/cluster/metadata Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -563,9 +563,6 @@ tests:
563
563
issue : https://github.com/elastic/elasticsearch/issues/130010
564
564
- class : org.elasticsearch.xpack.esql.qa.mixed.MixedClusterEsqlSpecIT
565
565
issue : https://github.com/elastic/elasticsearch/issues/128224
566
- - class : org.elasticsearch.cluster.metadata.ComposableIndexTemplateTests
567
- method : testMergeEmptyMappingsIntoTemplateWithNonEmptySettings
568
- issue : https://github.com/elastic/elasticsearch/issues/130050
569
566
- class : org.elasticsearch.xpack.esql.qa.multi_node.GenerativeIT
570
567
method : test
571
568
issue : https://github.com/elastic/elasticsearch/issues/130067
Original file line number Diff line number Diff line change @@ -352,7 +352,12 @@ public void testMergeEmptyMappingsIntoTemplateWithNonEmptySettings() throws IOEx
352
352
// Attempting to merge in null mappings ought to fail
353
353
ComposableIndexTemplate indexTemplate = randomInstance ();
354
354
expectThrows (NullPointerException .class , () -> indexTemplate .mergeMappings (null ));
355
- assertThat (indexTemplate .mergeMappings (EMPTY_MAPPINGS ), equalTo (indexTemplate ));
355
+ ComposableIndexTemplate mergedTemplate = indexTemplate .mergeMappings (EMPTY_MAPPINGS );
356
+ if (indexTemplate .template () == null || indexTemplate .template ().mappings () == null ) {
357
+ assertThat (mergedTemplate .template ().mappings (), equalTo (EMPTY_MAPPINGS ));
358
+ } else {
359
+ assertThat (mergedTemplate , equalTo (indexTemplate ));
360
+ }
356
361
assertThat (indexTemplate .mergeSettings (Settings .EMPTY ), equalTo (indexTemplate ));
357
362
}
358
363
You can’t perform that action at this time.
0 commit comments