use of io.crate.user.UserManager in project crate by crate.
the class SysPrivilegesIntegrationTest method setUpNodesUsersAndPrivileges.
@Before
public void setUpNodesUsersAndPrivileges() throws Exception {
super.createSessions();
for (String userName : USERNAMES) {
executeAsSuperuser("create user " + userName);
}
UserManager userManager = internalCluster().getInstance(UserManager.class);
Long rowCount = userManager.applyPrivileges(USERNAMES, PRIVILEGES).get(5, TimeUnit.SECONDS);
assertThat(rowCount, is(6L));
}
Aggregations