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

zhangliang 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 e6c2c4082f6 Update database protocol type test to use FIXTURE instead 
of PostgreSQL (#35376)
e6c2c4082f6 is described below

commit e6c2c4082f6b8200cb967668780fef0572148222
Author: Liang Zhang <zhangli...@apache.org>
AuthorDate: Mon May 12 19:29:46 2025 +0800

    Update database protocol type test to use FIXTURE instead of PostgreSQL 
(#35376)
    
    - Changed test case to use FIXTURE database type instead of PostgreSQL
    - Removed unnecessary test dependencies for PostgreSQL and MySQL database 
infrastructures
---
 proxy/frontend/core/pom.xml                                  | 12 ------------
 .../protocol/FrontDatabaseProtocolTypeFactoryTest.java       |  6 +++---
 2 files changed, 3 insertions(+), 15 deletions(-)

diff --git a/proxy/frontend/core/pom.xml b/proxy/frontend/core/pom.xml
index 53a03c3d5cb..7d4acc25f68 100644
--- a/proxy/frontend/core/pom.xml
+++ b/proxy/frontend/core/pom.xml
@@ -45,18 +45,6 @@
             <version>${project.version}</version>
             <scope>test</scope>
         </dependency>
-        <dependency>
-            <groupId>org.apache.shardingsphere</groupId>
-            <artifactId>shardingsphere-infra-database-postgresql</artifactId>
-            <version>${project.version}</version>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.shardingsphere</groupId>
-            <artifactId>shardingsphere-infra-database-mysql</artifactId>
-            <version>${project.version}</version>
-            <scope>test</scope>
-        </dependency>
         
         <dependency>
             <groupId>io.netty</groupId>
diff --git 
a/proxy/frontend/core/src/test/java/org/apache/shardingsphere/proxy/frontend/protocol/FrontDatabaseProtocolTypeFactoryTest.java
 
b/proxy/frontend/core/src/test/java/org/apache/shardingsphere/proxy/frontend/protocol/FrontDatabaseProtocolTypeFactoryTest.java
index 54a3f328dd8..c93fffb78f0 100644
--- 
a/proxy/frontend/core/src/test/java/org/apache/shardingsphere/proxy/frontend/protocol/FrontDatabaseProtocolTypeFactoryTest.java
+++ 
b/proxy/frontend/core/src/test/java/org/apache/shardingsphere/proxy/frontend/protocol/FrontDatabaseProtocolTypeFactoryTest.java
@@ -71,13 +71,13 @@ class FrontDatabaseProtocolTypeFactoryTest {
     }
     
     @Test
-    void 
assertGetDatabaseTypeOfPostgreSQLDatabaseTypeFromMetaDataContextsProps() {
+    void assertGetDatabaseTypeFromMetaDataContextsProps() {
         ContextManager contextManager = 
mockContextManager(Collections.singleton(mockDatabase()),
-                PropertiesBuilder.build(new 
Property(ConfigurationPropertyKey.PROXY_FRONTEND_DATABASE_PROTOCOL_TYPE.getKey(),
 "PostgreSQL")));
+                PropertiesBuilder.build(new 
Property(ConfigurationPropertyKey.PROXY_FRONTEND_DATABASE_PROTOCOL_TYPE.getKey(),
 "FIXTURE")));
         
when(ProxyContext.getInstance().getContextManager()).thenReturn(contextManager);
         DatabaseType databaseType = 
FrontDatabaseProtocolTypeFactory.getDatabaseType();
         assertThat(databaseType, instanceOf(DatabaseType.class));
-        assertThat(databaseType.getType(), is("PostgreSQL"));
+        assertThat(databaseType.getType(), is("FIXTURE"));
     }
     
     private ShardingSphereDatabase mockDatabase() {

Reply via email to