mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
test: properly set node types.
Original commit: elastic/x-pack-elasticsearch@46096c087b
This commit is contained in:
parent
6320f39023
commit
ddfb05dc05
@ -135,9 +135,15 @@ public class NoMasterNodeTests extends AbstractWatcherIntegrationTests {
|
||||
public void testDedicatedMasterNodeLayout() throws Exception {
|
||||
// Only the master nodes are in the unicast nodes list:
|
||||
config = new ClusterDiscoveryConfiguration.UnicastZen(3);
|
||||
Settings settings = ImmutableSettings.builder().put("node.type", "master").build();
|
||||
Settings settings = ImmutableSettings.builder()
|
||||
.put("node.data", false)
|
||||
.put("node.master", true)
|
||||
.build();
|
||||
internalTestCluster().startNodesAsync(3, settings).get();
|
||||
settings = ImmutableSettings.builder().put("node.type", "data").build();
|
||||
settings = ImmutableSettings.builder()
|
||||
.put("node.data", true)
|
||||
.put("node.master", false)
|
||||
.build();
|
||||
internalTestCluster().startNodesAsync(7, settings).get();
|
||||
ensureWatcherStarted(false);
|
||||
ensureLicenseEnabled();
|
||||
|
Loading…
x
Reference in New Issue
Block a user