mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-18 10:54:54 +00:00
Test: Fix tests looking for old indexes to resolve against the correct dir
This commit is contained in:
parent
b21d3d2fb5
commit
ca8867a334
@ -165,7 +165,7 @@ public class OldIndexBackwardsCompatibilityIT extends ESIntegTestCase {
|
|||||||
String indexName = indexFile.replace(".zip", "").toLowerCase(Locale.ROOT).replace("unsupported-", "index-");
|
String indexName = indexFile.replace(".zip", "").toLowerCase(Locale.ROOT).replace("unsupported-", "index-");
|
||||||
|
|
||||||
// decompress the index
|
// decompress the index
|
||||||
Path backwardsIndex = getDataPath(indexFile);
|
Path backwardsIndex = getBwcIndicesPath().resolve(indexFile);
|
||||||
try (InputStream stream = Files.newInputStream(backwardsIndex)) {
|
try (InputStream stream = Files.newInputStream(backwardsIndex)) {
|
||||||
TestUtil.unzip(stream, unzipDir);
|
TestUtil.unzip(stream, unzipDir);
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@ public class RecoveryWithUnsupportedIndicesIT extends StaticIndexBackwardCompati
|
|||||||
String indexName = "unsupported-0.20.6";
|
String indexName = "unsupported-0.20.6";
|
||||||
|
|
||||||
logger.info("Checking static index " + indexName);
|
logger.info("Checking static index " + indexName);
|
||||||
Settings nodeSettings = prepareBackwardsDataDir(getDataPath(indexName + ".zip"), Node.HTTP_ENABLED, true);
|
Settings nodeSettings = prepareBackwardsDataDir(getBwcIndicesPath().resolve(indexName + ".zip"), Node.HTTP_ENABLED, true);
|
||||||
try {
|
try {
|
||||||
internalCluster().startNode(nodeSettings);
|
internalCluster().startNode(nodeSettings);
|
||||||
fail();
|
fail();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user