We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5320b68 commit 5099780Copy full SHA for 5099780
server/src/test/java/org/opensearch/cluster/node/DiscoveryNodeTests.java
@@ -179,9 +179,6 @@ public void testDiscoveryNodeIsRemoteClusterClientUnset() {
179
// as a workaround for making the new CLUSTER_MANAGER_ROLE has got the same abbreviation 'm'.
180
// The test validate this behavior.
181
public void testSetAdditionalRolesCanAddDeprecatedMasterRole() {
182
- // Validate MASTER_ROLE is not in DiscoveryNodeRole.BUILT_IN_ROLES
183
- assertFalse(DiscoveryNode.getPossibleRoleNames().contains(DiscoveryNodeRole.MASTER_ROLE.roleName()));
184
-
185
DiscoveryNode.setAdditionalRoles(Collections.emptySet());
186
assertTrue(DiscoveryNode.getPossibleRoleNames().contains(DiscoveryNodeRole.MASTER_ROLE.roleName()));
187
}
0 commit comments