Tests: fix tests not to use CWD
This commit is contained in:
parent
7d7b45beed
commit
7c05b8ebf5
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue