Tests: fix tests not to use CWD

This commit is contained in:
Robert Muir 2015-05-05 12:47:37 -04:00
parent 7d7b45beed
commit 7c05b8ebf5
2 changed files with 2 additions and 0 deletions

View File

@ -193,6 +193,7 @@ public class KuromojiAnalysisTests extends ElasticsearchTestCase {
public AnalysisService createAnalysisService() {
Settings settings = ImmutableSettings.settingsBuilder()
.put("path.home", createTempDir())
.loadFromClasspath("org/elasticsearch/index/analysis/kuromoji_analysis.json")
.put(IndexMetaData.SETTING_VERSION_CREATED, Version.CURRENT)
.build();

View File

@ -42,6 +42,7 @@ public class KuromojiIntegrationTests extends ElasticsearchIntegrationTest {
protected Settings nodeSettings(int nodeOrdinal) {
return ImmutableSettings.builder()
.put(super.nodeSettings(nodeOrdinal))
.put("path.home", createTempDir())
.put("plugins." + PluginsService.LOAD_PLUGIN_FROM_CLASSPATH, true)
.build();
}