Skip to content

Commit

Permalink
minor refactoring with specifying node roles
Browse files Browse the repository at this point in the history
Signed-off-by: Sandesh Kumar <sandeshkr419@gmail.com>
  • Loading branch information
sandeshkr419 committed Mar 6, 2023
1 parent 8353014 commit c9c123e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,8 @@ public void testNodeRolesWithMasterLegacySettings() throws ExecutionException, I
public void testNodeRolesWithClusterManagerRole() throws ExecutionException, InterruptedException {
int total = 1;
Settings legacyMasterSettings = Settings.builder()
.put("node.roles", "cluster_manager, remote_cluster_client").build();
.put("node.roles", String.format("%s, %s", DiscoveryNodeRole.CLUSTER_MANAGER_ROLE.roleName(), DiscoveryNodeRole.REMOTE_CLUSTER_CLIENT_ROLE.roleName()))
.build();

internalCluster().startNodes(legacyMasterSettings);
waitForNodes(total);
Expand Down

0 comments on commit c9c123e

Please sign in to comment.