From 300d138578ef853071d649d647335d8430320f14 Mon Sep 17 00:00:00 2001 From: Nils Bandener Date: Wed, 3 Jul 2024 16:22:46 +0200 Subject: [PATCH] New perf test Signed-off-by: Nils Bandener --- .../privileges/PrivilegesEvaluatorPeformanceTest2.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/performanceTest/java/org/opensearch/security/privileges/PrivilegesEvaluatorPeformanceTest2.java b/src/performanceTest/java/org/opensearch/security/privileges/PrivilegesEvaluatorPeformanceTest2.java index c09689970f..58b22d0d63 100644 --- a/src/performanceTest/java/org/opensearch/security/privileges/PrivilegesEvaluatorPeformanceTest2.java +++ b/src/performanceTest/java/org/opensearch/security/privileges/PrivilegesEvaluatorPeformanceTest2.java @@ -548,7 +548,7 @@ public ReplaceResult replaceDashboardsIndex( } }; - IndexResolverReplacer indexResolverReplacer = new IndexResolverReplacer(() -> clusterState, null, threadContext); + IndexResolverReplacer indexResolverReplacer = new IndexResolverReplacer(indexNameExpressionResolver, () -> clusterState, null); NamedXContentRegistry namedXContentRegistry = NamedXContentRegistry.EMPTY; DynamicConfigModelV7 dynamicConfigModel = new DynamicConfigModelV7( @@ -570,7 +570,6 @@ public ReplaceResult replaceDashboardsIndex( ); PrivilegesEvaluator privilegesEvaluator = new PrivilegesEvaluator( - null, () -> clusterState, threadContext, configurationRepository, @@ -580,6 +579,7 @@ public ReplaceResult replaceDashboardsIndex( privilegesInterceptor, null, indexResolverReplacer, + false, namedXContentRegistry );