From 1626aa8945dfc303001bb152475c85ea2a4691f0 Mon Sep 17 00:00:00 2001 From: Petar Dzepina Date: Fri, 6 Jan 2023 19:37:55 +0100 Subject: [PATCH] fixed unit test Signed-off-by: Petar Dzepina --- .../opensearch/securityanalytics/mapper/MapperUtilsTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {