Fix integration tests

Due to change in test infra, we disable by default automatic loading for classpath plugins (see 75efa47d5a), we need to explicitly enable it again.
This commit is contained in:
David Pilato 2014-05-23 16:57:46 +02:00
parent 8e560c072b
commit dcfbeeb48b
1 changed files with 11 additions and 0 deletions

View File

@ -19,6 +19,9 @@
package org.elasticsearch.index.analysis; package org.elasticsearch.index.analysis;
import org.elasticsearch.action.admin.indices.analyze.AnalyzeResponse; 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.elasticsearch.test.ElasticsearchIntegrationTest;
import org.junit.Test; import org.junit.Test;
@ -30,6 +33,14 @@ import static org.hamcrest.CoreMatchers.notNullValue;
@ElasticsearchIntegrationTest.ClusterScope(scope = ElasticsearchIntegrationTest.Scope.SUITE) @ElasticsearchIntegrationTest.ClusterScope(scope = ElasticsearchIntegrationTest.Scope.SUITE)
public class KuromojiIntegrationTests extends ElasticsearchIntegrationTest { 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 @Test
public void testKuromojiAnalyzer() throws ExecutionException, InterruptedException { public void testKuromojiAnalyzer() throws ExecutionException, InterruptedException {
AnalyzeResponse response = client().admin().indices() AnalyzeResponse response = client().admin().indices()