RaigorJiang commented on code in PR #19399:
URL: https://github.com/apache/shardingsphere/pull/19399#discussion_r931202055
##########
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:
It's not a good test case, try:
```
assertTrue(privileges.get().hasPrivileges("db_dal_admin");
```
Because `db_dal_admin` is one of the two databases in your
`user_database_mappings`.
--
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]