From f8ab6f0fb557ea93261b622695f020d7aab36337 Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Tue, 24 Nov 2015 09:28:28 +0100 Subject: [PATCH] Fix compilation of ShieldIndexSearcherWrapperUnitTests. The break was introduced in elastic/elasticsearchelastic/elasticsearch#14896. Original commit: elastic/x-pack-elasticsearch@07810b2d2b2b8df798cb13d1968ab172359b4259 --- .../accesscontrol/ShieldIndexSearcherWrapperUnitTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shield/src/test/java/org/elasticsearch/shield/authz/accesscontrol/ShieldIndexSearcherWrapperUnitTests.java b/shield/src/test/java/org/elasticsearch/shield/authz/accesscontrol/ShieldIndexSearcherWrapperUnitTests.java index 785b7e20ed3..5177e10e701 100644 --- a/shield/src/test/java/org/elasticsearch/shield/authz/accesscontrol/ShieldIndexSearcherWrapperUnitTests.java +++ b/shield/src/test/java/org/elasticsearch/shield/authz/accesscontrol/ShieldIndexSearcherWrapperUnitTests.java @@ -32,6 +32,7 @@ import org.elasticsearch.index.mapper.internal.ParentFieldMapper; import org.elasticsearch.index.shard.IndexShard; import org.elasticsearch.index.shard.ShardId; import org.elasticsearch.index.similarity.SimilarityService; +import org.elasticsearch.indices.IndicesModule; import org.elasticsearch.indices.IndicesWarmer; import org.elasticsearch.search.aggregations.LeafBucketCollector; import org.elasticsearch.shield.authz.InternalAuthorizationService; @@ -67,7 +68,7 @@ public class ShieldIndexSearcherWrapperUnitTests extends ESTestCase { AnalysisService analysisService = new AnalysisService(indexSettings, Collections.emptyMap(), Collections.emptyMap(), Collections.emptyMap(), Collections.emptyMap()); SimilarityService similarityService = new SimilarityService(indexSettings, Collections.emptyMap()); - mapperService = new MapperService(indexSettings, analysisService, similarityService); + mapperService = new MapperService(indexSettings, analysisService, similarityService, new IndicesModule().getMapperRegistry()); ShardId shardId = new ShardId(index, 0); licenseState = mock(ShieldLicenseState.class);