RaigorJiang commented on code in PR #19399:
URL: https://github.com/apache/shardingsphere/pull/19399#discussion_r931206242


##########
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/test/java/org/apache/shardingsphere/authority/provider/schema/DatabasePermittedPrivilegesProviderAlgorithmTest.java:
##########
@@ -41,6 +42,7 @@ public void assertBuildAuthorityRegistry() {
         Optional<ShardingSpherePrivileges> privileges = 
actual.findPrivileges(new Grantee("user1", "127.0.0.2"));
         assertTrue(privileges.isPresent());
         assertTrue(privileges.get().hasPrivileges("test"));
+        assertTrue(privileges.get().hasPrivileges(new 
DatabaseAccessSubject("*"), Collections.emptyList()));

Review Comment:
   The param of DatabaseAccessSubject should be a name of logic database, like 
`db_dal_admin` in the `PROP_USER_DATABASE_MAPPINGS`, can not be `*`, is it?



-- 
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]

Reply via email to