josh-mckenzie commented on a change in pull request #1205:
URL: https://github.com/apache/cassandra/pull/1205#discussion_r783425982
##########
File path: test/unit/org/apache/cassandra/auth/CassandraRoleManagerTest.java
##########
@@ -85,4 +103,75 @@ private void fetchRolesAndCheckReadCount(IRoleManager
roleManager, RoleResource
long after = getRolesReadCount();
assertEquals(granted.size(), after - before);
}
+
+ @Test
+ public void confirmFastRoleSetup() throws Exception
+ {
+ IRoleManager roleManager = new
AuthTestUtils.LocalCassandraRoleManager();
+ roleManager.setup();
+ for (RoleResource r : ALL_ROLES)
+ roleManager.createRole(AuthenticatedUser.ANONYMOUS_USER, r, new
RoleOptions());
+
+ CassandraRoleManager crm = new CassandraRoleManager();
+
+ assertEquals(CassandraRoleManager.hasExistingRoles(), true);
+ assertEquals(crm.isClusterReady(), false);
Review comment:
Fleshed out a bit and swapped to the less tautological options.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]