From dcfbeeb48b0b862dd3c1429f77fa60e925a6fa22 Mon Sep 17 00:00:00 2001 From: David Pilato Date: Fri, 23 May 2014 16:57:46 +0200 Subject: [PATCH] Fix integration tests Due to change in test infra, we disable by default automatic loading for classpath plugins (see https://github.com/elasticsearch/elasticsearch/commit/75efa47d5ad89da8d51bbdf82e0e4c3c67108139), we need to explicitly enable it again. --- .../index/analysis/KuromojiIntegrationTests.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/test/java/org/elasticsearch/index/analysis/KuromojiIntegrationTests.java b/src/test/java/org/elasticsearch/index/analysis/KuromojiIntegrationTests.java index 5d909959db3..9475f1ca069 100644 --- a/src/test/java/org/elasticsearch/index/analysis/KuromojiIntegrationTests.java +++ b/src/test/java/org/elasticsearch/index/analysis/KuromojiIntegrationTests.java @@ -19,6 +19,9 @@ package org.elasticsearch.index.analysis; import org.elasticsearch.action.admin.indices.analyze.AnalyzeResponse; +import org.elasticsearch.common.settings.ImmutableSettings; +import org.elasticsearch.common.settings.Settings; +import org.elasticsearch.plugins.PluginsService; import org.elasticsearch.test.ElasticsearchIntegrationTest; import org.junit.Test; @@ -30,6 +33,14 @@ import static org.hamcrest.CoreMatchers.notNullValue; @ElasticsearchIntegrationTest.ClusterScope(scope = ElasticsearchIntegrationTest.Scope.SUITE) public class KuromojiIntegrationTests extends ElasticsearchIntegrationTest { + @Override + protected Settings nodeSettings(int nodeOrdinal) { + return ImmutableSettings.builder() + .put(super.nodeSettings(nodeOrdinal)) + .put("plugins." + PluginsService.LOAD_PLUGIN_FROM_CLASSPATH, true) + .build(); + } + @Test public void testKuromojiAnalyzer() throws ExecutionException, InterruptedException { AnalyzeResponse response = client().admin().indices()