This is an automated email from the ASF dual-hosted git repository.
terrymanu 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 f330493cde7 Fix ImportDatabaseConfigurationExecutorTest (#39897)
f330493cde7 is described below
commit f330493cde761fd210a64fc79cc2ee5abe65ed5b
Author: Liang Zhang <[email protected]>
AuthorDate: Sat Sep 19 16:33:42 2026 +0800
Fix ImportDatabaseConfigurationExecutorTest (#39897)
---
.../updatable/imports/ImportDatabaseConfigurationExecutorTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/proxy/backend/core/src/test/java/org/apache/shardingsphere/proxy/backend/handler/distsql/ral/updatable/imports/ImportDatabaseConfigurationExecutorTest.java
b/proxy/backend/core/src/test/java/org/apache/shardingsphere/proxy/backend/handler/distsql/ral/updatable/imports/ImportDatabaseConfigurationExecutorTest.java
index 33b48dfe4c2..3bb4cf9902b 100644
---
a/proxy/backend/core/src/test/java/org/apache/shardingsphere/proxy/backend/handler/distsql/ral/updatable/imports/ImportDatabaseConfigurationExecutorTest.java
+++
b/proxy/backend/core/src/test/java/org/apache/shardingsphere/proxy/backend/handler/distsql/ral/updatable/imports/ImportDatabaseConfigurationExecutorTest.java
@@ -27,11 +27,11 @@ import
org.apache.shardingsphere.infra.config.props.temporary.TemporaryConfigura
import org.apache.shardingsphere.infra.exception.generic.FileIOException;
import
org.apache.shardingsphere.infra.exception.kernel.metadata.MissingRequiredDatabaseException;
import
org.apache.shardingsphere.infra.exception.kernel.metadata.rule.DuplicateRuleException;
+import
org.apache.shardingsphere.infra.exception.kernel.metadata.rule.InvalidRuleConfigurationException;
import
org.apache.shardingsphere.infra.metadata.database.ShardingSphereDatabase;
import
org.apache.shardingsphere.infra.metadata.database.resource.ResourceMetaData;
import
org.apache.shardingsphere.infra.metadata.database.resource.unit.StorageUnit;
import
org.apache.shardingsphere.infra.rule.attribute.datasource.DataSourceMapperRuleAttribute;
-import
org.apache.shardingsphere.infra.spi.exception.ServiceProviderNotFoundException;
import org.apache.shardingsphere.infra.spi.type.typed.TypedSPILoader;
import org.apache.shardingsphere.infra.util.props.PropertiesBuilder;
import org.apache.shardingsphere.infra.util.props.PropertiesBuilder.Property;
@@ -99,7 +99,7 @@ class ImportDatabaseConfigurationExecutorTest {
return Stream.of(
Arguments.of("missing database name", "sharding_db",
"/conf/import/database-empty-database-name.yaml",
MissingRequiredDatabaseException.class),
Arguments.of("duplicated logic table", "sharding_db",
"/conf/import/database-duplicated-logic-table.yaml",
DuplicateRuleException.class),
- Arguments.of("invalid algorithm", "sharding_db",
"/conf/import/database-invalid-algorithm.yaml",
ServiceProviderNotFoundException.class));
+ Arguments.of("invalid algorithm", "sharding_db",
"/conf/import/database-invalid-algorithm.yaml",
InvalidRuleConfigurationException.class));
}
private void assertExecute(final ContextManager contextManager, final
String filePath) {