From 4c6aaa38483011c11a7ba92acf74a9a5a95f253a Mon Sep 17 00:00:00 2001 From: Mohammad Qureshi Date: Tue, 19 Mar 2024 18:43:17 -0700 Subject: [PATCH] Fix test assertion due to change in DerivedFieldMapper CONTENT_TYPE Signed-off-by: Mohammad Qureshi --- .../org/opensearch/index/mapper/DerivedFieldMapperTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/test/java/org/opensearch/index/mapper/DerivedFieldMapperTests.java b/server/src/test/java/org/opensearch/index/mapper/DerivedFieldMapperTests.java index 92311584a5972..19c5ccdc8faf3 100644 --- a/server/src/test/java/org/opensearch/index/mapper/DerivedFieldMapperTests.java +++ b/server/src/test/java/org/opensearch/index/mapper/DerivedFieldMapperTests.java @@ -109,7 +109,7 @@ public void testFieldInDerivedAndProperties() throws IOException { // If it didn't fail here, it would hit the MapperParsingException for the field being defined more than once // when MappingLookup is initialized assertEquals( - "Failed to parse mapping [_doc]: mapper [field] cannot be changed from type [derived_field] to [keyword]", + "Failed to parse mapping [_doc]: mapper [field] cannot be changed from type [derived] to [keyword]", ex.getMessage() ); }