mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
[TEST] remove global scope mention from ElasticsearchIntegrationTest#buildTestCluster
The global cluster gets created from a static block and shared through all tests in the same jvm. The `buildTestCluster` method can't get called passing in `Scope.GLOBAL`, hence removed its mention from it as it might be misleading. The only two scopes supported within the `buildTestCluster` method are `SUITE` and `TEST`.
This commit is contained in:
parent
598854dd72
commit
0d49a8ec76
@ -1569,11 +1569,8 @@ public abstract class ElasticsearchIntegrationTest extends ElasticsearchTestCase
|
|||||||
case SUITE:
|
case SUITE:
|
||||||
nodePrefix = SUITE_CLUSTER_NODE_PREFIX;
|
nodePrefix = SUITE_CLUSTER_NODE_PREFIX;
|
||||||
break;
|
break;
|
||||||
case GLOBAL:
|
|
||||||
nodePrefix = GLOBAL_CLUSTER_NODE_PREFIX;
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
throw new ElasticsearchException("Unknown scope: " + scope);
|
throw new ElasticsearchException("Scope not supported: " + scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
return new InternalTestCluster(currentClusterSeed, minNumDataNodes, maxNumDataNodes,
|
return new InternalTestCluster(currentClusterSeed, minNumDataNodes, maxNumDataNodes,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user