diff --git a/src/test/java/org/opensearch/securityanalytics/mapper/MapperUtilsTests.java b/src/test/java/org/opensearch/securityanalytics/mapper/MapperUtilsTests.java index 13a35c4dd..92cf6c568 100644 --- a/src/test/java/org/opensearch/securityanalytics/mapper/MapperUtilsTests.java +++ b/src/test/java/org/opensearch/securityanalytics/mapper/MapperUtilsTests.java @@ -45,7 +45,7 @@ public void testValidateIndexMappingsEmptyMappings() throws IOException { mappings.put("my_index", mappingMetadata); IllegalArgumentException e = assertThrows(IllegalArgumentException.class, () -> MapperUtils.validateIndexMappings("my_index", mappingMetadata, MapperTopicStore.aliasMappings("test123"))); - assertTrue(e.getMessage().contains("Index mappings are empty")); + assertTrue(e.getMessage().contains("Mappings for index [my_index] are empty")); } public void testValidateIndexMappingsNoMissing() throws IOException {