This is an automated email from the ASF dual-hosted git repository.

menghaoran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 1541c76  Rename authority provider type from STORAGE to NATIVE (#10021)
1541c76 is described below

commit 1541c76f93870e7d04f8f9a7abf08391d2e94b63
Author: Liang Zhang <[email protected]>
AuthorDate: Sat Apr 10 13:57:59 2021 +0800

    Rename authority provider type from STORAGE to NATIVE (#10021)
---
 .../NativeAuthorityProviderAlgorithm.java}                     | 10 +++++-----
 .../loader/StoragePrivilegeLoadEngine.java                     |  4 ++--
 .../{storage => natived}/loader/StoragePrivilegeLoader.java    |  2 +-
 .../loader/impl/StoragePrivilegeBuilder.java                   |  4 ++--
 .../loader/impl/StoragePrivilegeMerger.java                    |  2 +-
 .../loader/impl/dialect/MySQLPrivilegeLoader.java              |  4 ++--
 .../loader/impl/dialect/OraclePrivilegeLoader.java             |  4 ++--
 .../loader/impl/dialect/PostgreSQLPrivilegeLoader.java         |  4 ++--
 ....authority.algorithm.natived.loader.StoragePrivilegeLoader} |  6 +++---
 ...ache.shardingsphere.authority.spi.AuthorityProvideAlgorithm |  2 +-
 .../loader/impl/dialect/MySQLPrivilegeLoaderTest.java          |  4 ++--
 .../loader/impl/dialect/OraclePrivilegeLoaderTest.java         |  4 ++--
 .../loader/impl/dialect/PostgreSQLPrivilegeLoaderTest.java     |  4 ++--
 .../shardingsphere/authority/merge/PrivilegeMergeTest.java     |  2 +-
 .../context/authority/GovernanceAuthorityContext.java          |  4 ++--
 .../context/metadata/GovernanceMetaDataContextsTest.java       |  4 ++--
 .../text/admin/mysql/executor/ShowDatabasesExecutorTest.java   |  4 ++--
 .../src/main/resources/conf/server.yaml                        |  2 +-
 .../frontend/mysql/auth/MySQLAuthenticationHandlerTest.java    |  4 ++--
 19 files changed, 37 insertions(+), 37 deletions(-)

diff --git 
a/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/storage/StorageAuthorityProviderAlgorithm.java
 
b/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/natived/NativeAuthorityProviderAlgorithm.java
similarity index 87%
rename from 
shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/storage/StorageAuthorityProviderAlgorithm.java
rename to 
shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/natived/NativeAuthorityProviderAlgorithm.java
index 3487f98..c256a8b 100644
--- 
a/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/storage/StorageAuthorityProviderAlgorithm.java
+++ 
b/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/natived/NativeAuthorityProviderAlgorithm.java
@@ -15,9 +15,9 @@
  * limitations under the License.
  */
 
-package org.apache.shardingsphere.authority.algorithm.storage;
+package org.apache.shardingsphere.authority.algorithm.natived;
 
-import 
org.apache.shardingsphere.authority.algorithm.storage.loader.StoragePrivilegeLoadEngine;
+import 
org.apache.shardingsphere.authority.algorithm.natived.loader.StoragePrivilegeLoadEngine;
 import org.apache.shardingsphere.authority.model.ShardingSpherePrivileges;
 import org.apache.shardingsphere.authority.spi.AuthorityProvideAlgorithm;
 import org.apache.shardingsphere.infra.metadata.ShardingSphereMetaData;
@@ -30,9 +30,9 @@ import java.util.Optional;
 import java.util.concurrent.ConcurrentHashMap;
 
 /**
- * Storage authority provide algorithm.
+ * Native authority provide algorithm.
 */
-public final class StorageAuthorityProviderAlgorithm implements 
AuthorityProvideAlgorithm {
+public final class NativeAuthorityProviderAlgorithm implements 
AuthorityProvideAlgorithm {
     
     private final Map<ShardingSphereUser, ShardingSpherePrivileges> 
userPrivilegeMap = new ConcurrentHashMap<>();
     
@@ -48,6 +48,6 @@ public final class StorageAuthorityProviderAlgorithm 
implements AuthorityProvide
     
     @Override
     public String getType() {
-        return "STORAGE";
+        return "NATIVE";
     }
 }
diff --git 
a/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/storage/loader/StoragePrivilegeLoadEngine.java
 
b/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/natived/loader/StoragePrivilegeLoadEngine.java
similarity index 93%
rename from 
shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/storage/loader/StoragePrivilegeLoadEngine.java
rename to 
shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/natived/loader/StoragePrivilegeLoadEngine.java
index f9c8c5e..f102e49 100644
--- 
a/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/storage/loader/StoragePrivilegeLoadEngine.java
+++ 
b/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/natived/loader/StoragePrivilegeLoadEngine.java
@@ -15,9 +15,9 @@
  * limitations under the License.
  */
 
-package org.apache.shardingsphere.authority.algorithm.storage.loader;
+package org.apache.shardingsphere.authority.algorithm.natived.loader;
 
-import 
org.apache.shardingsphere.authority.algorithm.storage.loader.impl.StoragePrivilegeBuilder;
+import 
org.apache.shardingsphere.authority.algorithm.natived.loader.impl.StoragePrivilegeBuilder;
 import org.apache.shardingsphere.authority.model.ShardingSpherePrivileges;
 import org.apache.shardingsphere.infra.metadata.ShardingSphereMetaData;
 import org.apache.shardingsphere.infra.metadata.user.ShardingSphereUser;
diff --git 
a/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/storage/loader/StoragePrivilegeLoader.java
 
b/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/natived/loader/StoragePrivilegeLoader.java
similarity index 96%
rename from 
shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/storage/loader/StoragePrivilegeLoader.java
rename to 
shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/natived/loader/StoragePrivilegeLoader.java
index 5112abb..e34685d 100644
--- 
a/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/storage/loader/StoragePrivilegeLoader.java
+++ 
b/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/natived/loader/StoragePrivilegeLoader.java
@@ -15,7 +15,7 @@
  * limitations under the License.
  */
 
-package org.apache.shardingsphere.authority.algorithm.storage.loader;
+package org.apache.shardingsphere.authority.algorithm.natived.loader;
 
 import org.apache.shardingsphere.authority.model.ShardingSpherePrivileges;
 import org.apache.shardingsphere.infra.metadata.user.ShardingSphereUser;
diff --git 
a/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/storage/loader/impl/StoragePrivilegeBuilder.java
 
b/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/natived/loader/impl/StoragePrivilegeBuilder.java
similarity index 98%
rename from 
shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/storage/loader/impl/StoragePrivilegeBuilder.java
rename to 
shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/natived/loader/impl/StoragePrivilegeBuilder.java
index 9bd8fa0..ca95ea6 100644
--- 
a/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/storage/loader/impl/StoragePrivilegeBuilder.java
+++ 
b/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/natived/loader/impl/StoragePrivilegeBuilder.java
@@ -15,12 +15,12 @@
  * limitations under the License.
  */
 
-package org.apache.shardingsphere.authority.algorithm.storage.loader.impl;
+package org.apache.shardingsphere.authority.algorithm.natived.loader.impl;
 
 import com.google.common.base.Preconditions;
 import lombok.AccessLevel;
 import lombok.NoArgsConstructor;
-import 
org.apache.shardingsphere.authority.algorithm.storage.loader.StoragePrivilegeLoader;
+import 
org.apache.shardingsphere.authority.algorithm.natived.loader.StoragePrivilegeLoader;
 import org.apache.shardingsphere.authority.model.ShardingSpherePrivileges;
 import org.apache.shardingsphere.infra.database.type.DatabaseType;
 import org.apache.shardingsphere.infra.database.type.DatabaseTypeRegistry;
diff --git 
a/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/storage/loader/impl/StoragePrivilegeMerger.java
 
b/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/natived/loader/impl/StoragePrivilegeMerger.java
similarity index 98%
rename from 
shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/storage/loader/impl/StoragePrivilegeMerger.java
rename to 
shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/natived/loader/impl/StoragePrivilegeMerger.java
index 5ef1b97..1f36ef4 100644
--- 
a/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/storage/loader/impl/StoragePrivilegeMerger.java
+++ 
b/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/natived/loader/impl/StoragePrivilegeMerger.java
@@ -15,7 +15,7 @@
  * limitations under the License.
  */
 
-package org.apache.shardingsphere.authority.algorithm.storage.loader.impl;
+package org.apache.shardingsphere.authority.algorithm.natived.loader.impl;
 
 import lombok.AccessLevel;
 import lombok.NoArgsConstructor;
diff --git 
a/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/storage/loader/impl/dialect/MySQLPrivilegeLoader.java
 
b/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/natived/loader/impl/dialect/MySQLPrivilegeLoader.java
similarity index 99%
rename from 
shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/storage/loader/impl/dialect/MySQLPrivilegeLoader.java
rename to 
shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/natived/loader/impl/dialect/MySQLPrivilegeLoader.java
index 1b2f2dc..6a87ab1 100644
--- 
a/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/storage/loader/impl/dialect/MySQLPrivilegeLoader.java
+++ 
b/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/natived/loader/impl/dialect/MySQLPrivilegeLoader.java
@@ -15,11 +15,11 @@
  * limitations under the License.
  */
 
-package 
org.apache.shardingsphere.authority.algorithm.storage.loader.impl.dialect;
+package 
org.apache.shardingsphere.authority.algorithm.natived.loader.impl.dialect;
 
 import org.apache.shardingsphere.authority.model.database.SchemaPrivileges;
 import org.apache.shardingsphere.authority.model.database.TablePrivileges;
-import 
org.apache.shardingsphere.authority.algorithm.storage.loader.StoragePrivilegeLoader;
+import 
org.apache.shardingsphere.authority.algorithm.natived.loader.StoragePrivilegeLoader;
 import org.apache.shardingsphere.authority.model.PrivilegeType;
 import org.apache.shardingsphere.authority.model.ShardingSpherePrivileges;
 import org.apache.shardingsphere.infra.metadata.user.Grantee;
diff --git 
a/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/storage/loader/impl/dialect/OraclePrivilegeLoader.java
 
b/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/natived/loader/impl/dialect/OraclePrivilegeLoader.java
similarity index 98%
rename from 
shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/storage/loader/impl/dialect/OraclePrivilegeLoader.java
rename to 
shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/natived/loader/impl/dialect/OraclePrivilegeLoader.java
index 1869a74..be089d1 100644
--- 
a/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/storage/loader/impl/dialect/OraclePrivilegeLoader.java
+++ 
b/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/natived/loader/impl/dialect/OraclePrivilegeLoader.java
@@ -15,9 +15,9 @@
  * limitations under the License.
  */
 
-package 
org.apache.shardingsphere.authority.algorithm.storage.loader.impl.dialect;
+package 
org.apache.shardingsphere.authority.algorithm.natived.loader.impl.dialect;
 
-import 
org.apache.shardingsphere.authority.algorithm.storage.loader.StoragePrivilegeLoader;
+import 
org.apache.shardingsphere.authority.algorithm.natived.loader.StoragePrivilegeLoader;
 import org.apache.shardingsphere.authority.model.PrivilegeType;
 import org.apache.shardingsphere.authority.model.ShardingSpherePrivileges;
 import org.apache.shardingsphere.authority.model.database.SchemaPrivileges;
diff --git 
a/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/storage/loader/impl/dialect/PostgreSQLPrivilegeLoader.java
 
b/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/natived/loader/impl/dialect/PostgreSQLPrivilegeLoader.java
similarity index 98%
rename from 
shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/storage/loader/impl/dialect/PostgreSQLPrivilegeLoader.java
rename to 
shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/natived/loader/impl/dialect/PostgreSQLPrivilegeLoader.java
index d1332d6..2a5b7db 100644
--- 
a/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/storage/loader/impl/dialect/PostgreSQLPrivilegeLoader.java
+++ 
b/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/algorithm/natived/loader/impl/dialect/PostgreSQLPrivilegeLoader.java
@@ -15,11 +15,11 @@
  * limitations under the License.
  */
 
-package 
org.apache.shardingsphere.authority.algorithm.storage.loader.impl.dialect;
+package 
org.apache.shardingsphere.authority.algorithm.natived.loader.impl.dialect;
 
 import org.apache.shardingsphere.authority.model.database.SchemaPrivileges;
 import org.apache.shardingsphere.authority.model.database.TablePrivileges;
-import 
org.apache.shardingsphere.authority.algorithm.storage.loader.StoragePrivilegeLoader;
+import 
org.apache.shardingsphere.authority.algorithm.natived.loader.StoragePrivilegeLoader;
 import org.apache.shardingsphere.authority.model.PrivilegeType;
 import org.apache.shardingsphere.authority.model.ShardingSpherePrivileges;
 import org.apache.shardingsphere.infra.metadata.user.Grantee;
diff --git 
a/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/resources/META-INF/services/org.apache.shardingsphere.authority.algorithm.storage.loader.StoragePrivilegeLoader
 
b/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/resources/META-INF/services/org.apache.shardingsphere.authority.algorithm.natived.loader.StoragePrivilegeLoader
similarity index 82%
rename from 
shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/resources/META-INF/services/org.apache.shardingsphere.authority.algorithm.storage.loader.StoragePrivilegeLoader
rename to 
shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/resources/META-INF/services/org.apache.shardingsphere.authority.algorithm.natived.loader.StoragePrivilegeLoader
index f1249e3..c75c42a 100644
--- 
a/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/resources/META-INF/services/org.apache.shardingsphere.authority.algorithm.storage.loader.StoragePrivilegeLoader
+++ 
b/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/resources/META-INF/services/org.apache.shardingsphere.authority.algorithm.natived.loader.StoragePrivilegeLoader
@@ -15,6 +15,6 @@
 # limitations under the License.
 #
 
-org.apache.shardingsphere.authority.algorithm.storage.loader.impl.dialect.MySQLPrivilegeLoader
-org.apache.shardingsphere.authority.algorithm.storage.loader.impl.dialect.PostgreSQLPrivilegeLoader
-org.apache.shardingsphere.authority.algorithm.storage.loader.impl.dialect.OraclePrivilegeLoader
+org.apache.shardingsphere.authority.algorithm.natived.loader.impl.dialect.MySQLPrivilegeLoader
+org.apache.shardingsphere.authority.algorithm.natived.loader.impl.dialect.PostgreSQLPrivilegeLoader
+org.apache.shardingsphere.authority.algorithm.natived.loader.impl.dialect.OraclePrivilegeLoader
diff --git 
a/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/resources/META-INF/services/org.apache.shardingsphere.authority.spi.AuthorityProvideAlgorithm
 
b/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/resources/META-INF/services/org.apache.shardingsphere.authority.spi.AuthorityProvideAlgorithm
index f5fcfa3..34e39c8 100644
--- 
a/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/resources/META-INF/services/org.apache.shardingsphere.authority.spi.AuthorityProvideAlgorithm
+++ 
b/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/main/resources/META-INF/services/org.apache.shardingsphere.authority.spi.AuthorityProvideAlgorithm
@@ -15,4 +15,4 @@
 # limitations under the License.
 #
 
-org.apache.shardingsphere.authority.algorithm.storage.StorageAuthorityProviderAlgorithm
+org.apache.shardingsphere.authority.algorithm.natived.NativeAuthorityProviderAlgorithm
diff --git 
a/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/algorithm/storage/loader/impl/dialect/MySQLPrivilegeLoaderTest.java
 
b/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/algorithm/natived/loader/impl/dialect/MySQLPrivilegeLoaderTest.java
similarity index 98%
rename from 
shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/algorithm/storage/loader/impl/dialect/MySQLPrivilegeLoaderTest.java
rename to 
shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/algorithm/natived/loader/impl/dialect/MySQLPrivilegeLoaderTest.java
index f1a8417..161435d 100644
--- 
a/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/algorithm/storage/loader/impl/dialect/MySQLPrivilegeLoaderTest.java
+++ 
b/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/algorithm/natived/loader/impl/dialect/MySQLPrivilegeLoaderTest.java
@@ -15,9 +15,9 @@
  * limitations under the License.
  */
 
-package 
org.apache.shardingsphere.authority.algorithm.storage.loader.impl.dialect;
+package 
org.apache.shardingsphere.authority.algorithm.natived.loader.impl.dialect;
 
-import 
org.apache.shardingsphere.authority.algorithm.storage.loader.StoragePrivilegeLoader;
+import 
org.apache.shardingsphere.authority.algorithm.natived.loader.StoragePrivilegeLoader;
 import org.apache.shardingsphere.authority.model.PrivilegeType;
 import org.apache.shardingsphere.authority.model.ShardingSpherePrivileges;
 import org.apache.shardingsphere.infra.metadata.user.ShardingSphereUser;
diff --git 
a/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/algorithm/storage/loader/impl/dialect/OraclePrivilegeLoaderTest.java
 
b/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/algorithm/natived/loader/impl/dialect/OraclePrivilegeLoaderTest.java
similarity index 97%
rename from 
shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/algorithm/storage/loader/impl/dialect/OraclePrivilegeLoaderTest.java
rename to 
shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/algorithm/natived/loader/impl/dialect/OraclePrivilegeLoaderTest.java
index 4e89921..adec378 100644
--- 
a/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/algorithm/storage/loader/impl/dialect/OraclePrivilegeLoaderTest.java
+++ 
b/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/algorithm/natived/loader/impl/dialect/OraclePrivilegeLoaderTest.java
@@ -15,9 +15,9 @@
  * limitations under the License.
  */
 
-package 
org.apache.shardingsphere.authority.algorithm.storage.loader.impl.dialect;
+package 
org.apache.shardingsphere.authority.algorithm.natived.loader.impl.dialect;
 
-import 
org.apache.shardingsphere.authority.algorithm.storage.loader.StoragePrivilegeLoader;
+import 
org.apache.shardingsphere.authority.algorithm.natived.loader.StoragePrivilegeLoader;
 import org.apache.shardingsphere.authority.model.PrivilegeType;
 import org.apache.shardingsphere.authority.model.ShardingSpherePrivileges;
 import org.apache.shardingsphere.authority.model.database.SchemaPrivileges;
diff --git 
a/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/algorithm/storage/loader/impl/dialect/PostgreSQLPrivilegeLoaderTest.java
 
b/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/algorithm/natived/loader/impl/dialect/PostgreSQLPrivilegeLoaderTest.java
similarity index 98%
rename from 
shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/algorithm/storage/loader/impl/dialect/PostgreSQLPrivilegeLoaderTest.java
rename to 
shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/algorithm/natived/loader/impl/dialect/PostgreSQLPrivilegeLoaderTest.java
index f7e71c9..744907d 100644
--- 
a/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/algorithm/storage/loader/impl/dialect/PostgreSQLPrivilegeLoaderTest.java
+++ 
b/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/algorithm/natived/loader/impl/dialect/PostgreSQLPrivilegeLoaderTest.java
@@ -15,12 +15,12 @@
  * limitations under the License.
  */
 
-package 
org.apache.shardingsphere.authority.algorithm.storage.loader.impl.dialect;
+package 
org.apache.shardingsphere.authority.algorithm.natived.loader.impl.dialect;
 
 import org.apache.shardingsphere.authority.model.PrivilegeType;
 import org.apache.shardingsphere.authority.model.ShardingSpherePrivileges;
 import org.apache.shardingsphere.authority.model.database.SchemaPrivileges;
-import 
org.apache.shardingsphere.authority.algorithm.storage.loader.StoragePrivilegeLoader;
+import 
org.apache.shardingsphere.authority.algorithm.natived.loader.StoragePrivilegeLoader;
 import org.apache.shardingsphere.infra.metadata.user.ShardingSphereUser;
 import org.apache.shardingsphere.infra.spi.ShardingSphereServiceLoader;
 import org.apache.shardingsphere.infra.spi.typed.TypedSPIRegistry;
diff --git 
a/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/merge/PrivilegeMergeTest.java
 
b/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/merge/PrivilegeMergeTest.java
index c68062e..8776933 100644
--- 
a/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/merge/PrivilegeMergeTest.java
+++ 
b/shardingsphere-features/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/merge/PrivilegeMergeTest.java
@@ -17,7 +17,7 @@
 
 package org.apache.shardingsphere.authority.merge;
 
-import 
org.apache.shardingsphere.authority.algorithm.storage.loader.impl.StoragePrivilegeMerger;
+import 
org.apache.shardingsphere.authority.algorithm.natived.loader.impl.StoragePrivilegeMerger;
 import org.apache.shardingsphere.authority.model.PrivilegeType;
 import org.apache.shardingsphere.authority.model.ShardingSpherePrivileges;
 import org.apache.shardingsphere.authority.model.database.SchemaPrivileges;
diff --git 
a/shardingsphere-governance/shardingsphere-governance-context/src/main/java/org/apache/shardingsphere/governance/context/authority/GovernanceAuthorityContext.java
 
b/shardingsphere-governance/shardingsphere-governance-context/src/main/java/org/apache/shardingsphere/governance/context/authority/GovernanceAuthorityContext.java
index bcaedf5..b269bad 100644
--- 
a/shardingsphere-governance/shardingsphere-governance-context/src/main/java/org/apache/shardingsphere/governance/context/authority/GovernanceAuthorityContext.java
+++ 
b/shardingsphere-governance/shardingsphere-governance-context/src/main/java/org/apache/shardingsphere/governance/context/authority/GovernanceAuthorityContext.java
@@ -20,7 +20,7 @@ package 
org.apache.shardingsphere.governance.context.authority;
 import com.google.common.eventbus.Subscribe;
 import lombok.Setter;
 import org.apache.shardingsphere.authority.AuthorityContext;
-import 
org.apache.shardingsphere.authority.algorithm.storage.StorageAuthorityProviderAlgorithm;
+import 
org.apache.shardingsphere.authority.algorithm.natived.NativeAuthorityProviderAlgorithm;
 import org.apache.shardingsphere.authority.spi.AuthorityProvideAlgorithm;
 import 
org.apache.shardingsphere.governance.core.event.model.auth.PrivilegeChangedEvent;
 import 
org.apache.shardingsphere.governance.core.event.model.auth.UserRuleChangedEvent;
@@ -61,7 +61,7 @@ public final class GovernanceAuthorityContext implements 
MetaDataAwareEventSubsc
 
     private void reloadAuthority(final Collection<ShardingSphereUser> users) {
         // TODO reload AuthorityCheckAlgorithm from SPI
-        AuthorityProvideAlgorithm result = new 
StorageAuthorityProviderAlgorithm();
+        AuthorityProvideAlgorithm result = new 
NativeAuthorityProviderAlgorithm();
         result.init(metaDataContexts.getMetaDataMap(), users);
         AuthorityContext.getInstance().init(result);
     }
diff --git 
a/shardingsphere-governance/shardingsphere-governance-context/src/test/java/org/apache/shardingsphere/governance/context/metadata/GovernanceMetaDataContextsTest.java
 
b/shardingsphere-governance/shardingsphere-governance-context/src/test/java/org/apache/shardingsphere/governance/context/metadata/GovernanceMetaDataContextsTest.java
index 5f2bd55..916a67c 100644
--- 
a/shardingsphere-governance/shardingsphere-governance-context/src/test/java/org/apache/shardingsphere/governance/context/metadata/GovernanceMetaDataContextsTest.java
+++ 
b/shardingsphere-governance/shardingsphere-governance-context/src/test/java/org/apache/shardingsphere/governance/context/metadata/GovernanceMetaDataContextsTest.java
@@ -17,7 +17,7 @@
 
 package org.apache.shardingsphere.governance.context.metadata;
 
-import 
org.apache.shardingsphere.authority.algorithm.storage.StorageAuthorityProviderAlgorithm;
+import 
org.apache.shardingsphere.authority.algorithm.natived.NativeAuthorityProviderAlgorithm;
 import 
org.apache.shardingsphere.governance.core.event.model.auth.UserRuleChangedEvent;
 import 
org.apache.shardingsphere.governance.core.event.model.datasource.DataSourceChangedEvent;
 import 
org.apache.shardingsphere.governance.core.event.model.metadata.MetaDataDeletedEvent;
@@ -159,7 +159,7 @@ public final class GovernanceMetaDataContextsTest {
     
     @Test
     public void assertAuthorityChanged() {
-        StorageAuthorityProviderAlgorithm authority = new 
StorageAuthorityProviderAlgorithm();
+        NativeAuthorityProviderAlgorithm authority = new 
NativeAuthorityProviderAlgorithm();
         UserRuleChangedEvent event = new 
UserRuleChangedEvent(Collections.singleton(mock(ShardingSphereUser.class)));
         governanceMetaDataContexts.renew(event);
         assertThat(governanceMetaDataContexts.getUsers().getUsers().size(), 
is(1));
diff --git 
a/shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/text/admin/mysql/executor/ShowDatabasesExecutorTest.java
 
b/shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/text/admin/mysql/executor/ShowDatabasesExecutorTest.java
index 6774351..efb09e0 100644
--- 
a/shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/text/admin/mysql/executor/ShowDatabasesExecutorTest.java
+++ 
b/shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/text/admin/mysql/executor/ShowDatabasesExecutorTest.java
@@ -18,7 +18,7 @@
 package org.apache.shardingsphere.proxy.backend.text.admin.mysql.executor;
 
 import org.apache.shardingsphere.authority.AuthorityContext;
-import 
org.apache.shardingsphere.authority.algorithm.storage.StorageAuthorityProviderAlgorithm;
+import 
org.apache.shardingsphere.authority.algorithm.natived.NativeAuthorityProviderAlgorithm;
 import org.apache.shardingsphere.authority.spi.AuthorityProvideAlgorithm;
 import 
org.apache.shardingsphere.infra.config.properties.ConfigurationProperties;
 import 
org.apache.shardingsphere.infra.context.metadata.impl.StandardMetaDataContexts;
@@ -67,7 +67,7 @@ public final class ShowDatabasesExecutorTest {
     }
     
     private void initAuthorityProvider() {
-        AuthorityProvideAlgorithm algorithm = new 
StorageAuthorityProviderAlgorithm();
+        AuthorityProvideAlgorithm algorithm = new 
NativeAuthorityProviderAlgorithm();
         algorithm.init(Collections.emptyMap(), Collections.emptyList());
         AuthorityContext.getInstance().init(algorithm);
     }
diff --git 
a/shardingsphere-proxy/shardingsphere-proxy-bootstrap/src/main/resources/conf/server.yaml
 
b/shardingsphere-proxy/shardingsphere-proxy-bootstrap/src/main/resources/conf/server.yaml
index a72e7ea..af6ebc5 100644
--- 
a/shardingsphere-proxy/shardingsphere-proxy-bootstrap/src/main/resources/conf/server.yaml
+++ 
b/shardingsphere-proxy/shardingsphere-proxy-bootstrap/src/main/resources/conf/server.yaml
@@ -60,4 +60,4 @@
 #rules:
 #  - !AUTHORITY
 #    provider:
-#      type: STORAGE
+#      type: NATIVE
diff --git 
a/shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-mysql/src/test/java/org/apache/shardingsphere/proxy/frontend/mysql/auth/MySQLAuthenticationHandlerTest.java
 
b/shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-mysql/src/test/java/org/apache/shardingsphere/proxy/frontend/mysql/auth/MySQLAuthenticationHandlerTest.java
index fe8ee39..d6e056c 100644
--- 
a/shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-mysql/src/test/java/org/apache/shardingsphere/proxy/frontend/mysql/auth/MySQLAuthenticationHandlerTest.java
+++ 
b/shardingsphere-proxy/shardingsphere-proxy-frontend/shardingsphere-proxy-frontend-mysql/src/test/java/org/apache/shardingsphere/proxy/frontend/mysql/auth/MySQLAuthenticationHandlerTest.java
@@ -19,7 +19,7 @@ package org.apache.shardingsphere.proxy.frontend.mysql.auth;
 
 import com.google.common.primitives.Bytes;
 import lombok.SneakyThrows;
-import 
org.apache.shardingsphere.authority.algorithm.storage.StorageAuthorityProviderAlgorithm;
+import 
org.apache.shardingsphere.authority.algorithm.natived.NativeAuthorityProviderAlgorithm;
 import 
org.apache.shardingsphere.db.protocol.mysql.constant.MySQLServerErrorCode;
 import 
org.apache.shardingsphere.db.protocol.mysql.packet.handshake.MySQLAuthPluginData;
 import org.apache.shardingsphere.infra.check.SQLChecker;
@@ -121,7 +121,7 @@ public final class MySQLAuthenticationHandlerTest {
     }
     
     private void setAuthority(final ShardingSphereUser user) {
-        StorageAuthorityProviderAlgorithm algorithm = new 
StorageAuthorityProviderAlgorithm();
+        NativeAuthorityProviderAlgorithm algorithm = new 
NativeAuthorityProviderAlgorithm();
         algorithm.init(Collections.emptyMap(), Collections.emptyList());
         initProxyContext(user);
     }

Reply via email to