mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-21 04:15:02 +00:00
Tests: make randomRepoPath work with bwc tests
This commit is contained in:
parent
65132d5533
commit
503f844a05
@ -1847,7 +1847,12 @@ public abstract class ElasticsearchIntegrationTest extends ElasticsearchTestCase
|
||||
* Returns path to a random directory that can be used to create a temporary file system repo
|
||||
*/
|
||||
public Path randomRepoPath() {
|
||||
return randomRepoPath(internalCluster().getDefaultSettings());
|
||||
if (currentCluster instanceof InternalTestCluster) {
|
||||
return randomRepoPath(((InternalTestCluster) currentCluster).getDefaultSettings());
|
||||
} else if (currentCluster instanceof CompositeTestCluster) {
|
||||
return randomRepoPath(((CompositeTestCluster) currentCluster).internalCluster().getDefaultSettings());
|
||||
}
|
||||
throw new UnsupportedOperationException("unsupported cluster type");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user