From 8b9a825d449b68a4d11dafd78c7779341a6636dc Mon Sep 17 00:00:00 2001 From: Petar Dzepina Date: Fri, 5 Aug 2022 19:52:52 +0200 Subject: [PATCH] * added support for mustache scripting of rollup.target_index field * defekt fixes * tests * small refactor/improvements * added wildcard check when creating rollup job; removed resolving targetIndex on Rollup init; added test for wildcards * lint fixes * moved target_index validation in getRollup resp handler * added using toMap() * exception fix * linter fix * fixed IT fail * added Exception catch block Signed-off-by: Petar Dzepina --- .../rollup/util/RollupFieldValueExpressionResolverTests.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/kotlin/org/opensearch/indexmanagement/rollup/util/RollupFieldValueExpressionResolverTests.kt b/src/test/kotlin/org/opensearch/indexmanagement/rollup/util/RollupFieldValueExpressionResolverTests.kt index d122008f6..be8c10d0e 100644 --- a/src/test/kotlin/org/opensearch/indexmanagement/rollup/util/RollupFieldValueExpressionResolverTests.kt +++ b/src/test/kotlin/org/opensearch/indexmanagement/rollup/util/RollupFieldValueExpressionResolverTests.kt @@ -23,10 +23,10 @@ class RollupFieldValueExpressionResolverTests : OpenSearchTestCase() { private val scriptService: ScriptService = mock() private val clusterService: ClusterService = mock() private val indexAliasUtils: RollupFieldValueExpressionResolver.IndexAliasUtils = mock() + @Before fun settings() { RollupFieldValueExpressionResolver.registerServices(scriptService, clusterService) - clusterService.state() } fun `test resolving no alias successfully`() {