You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2026/10/09 09:06:27 UTC

(shardingsphere) branch master updated: Use MySQL 8.0.40 for native JDBC and Proxy tests (#40112)

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 7c0c43316ac Use MySQL 8.0.40 for native JDBC and Proxy tests (#40112)
7c0c43316ac is described below

commit 7c0c43316ac769ae484c2af5755a2ae26724aadb
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Fri Oct 9 17:06:19 2026 +0800

    Use MySQL 8.0.40 for native JDBC and Proxy tests (#40112)
    
    * Internalize Maven cache prefix in setup-build-environment
    
    * Use MySQL 8.0.40 for native JDBC and Proxy tests
---
 .../apache/shardingsphere/test/natived/jdbc/databases/MySQLTest.java  | 4 +---
 .../apache/shardingsphere/test/natived/proxy/databases/MySQLTest.java | 4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/test/native/src/test/java/org/apache/shardingsphere/test/natived/jdbc/databases/MySQLTest.java b/test/native/src/test/java/org/apache/shardingsphere/test/natived/jdbc/databases/MySQLTest.java
index fb7a877ae01..9f0189a1359 100644
--- a/test/native/src/test/java/org/apache/shardingsphere/test/natived/jdbc/databases/MySQLTest.java
+++ b/test/native/src/test/java/org/apache/shardingsphere/test/natived/jdbc/databases/MySQLTest.java
@@ -55,9 +55,7 @@ class MySQLTest {
     
     @SuppressWarnings("resource")
     @Container
-    private final GenericContainer<?> container = new GenericContainer<>("mysql:9.7.1-oraclelinux9")
-            .withEnv("MYSQL_ROOT_PASSWORD", password)
-            .withExposedPorts(3306);
+    private final GenericContainer<?> container = new GenericContainer<>("mysql:8.0.40").withEnv("MYSQL_ROOT_PASSWORD", password).withExposedPorts(3306);
     
     private DataSource logicDataSource;
     
diff --git a/test/native/src/test/java/org/apache/shardingsphere/test/natived/proxy/databases/MySQLTest.java b/test/native/src/test/java/org/apache/shardingsphere/test/natived/proxy/databases/MySQLTest.java
index e0968ddc85c..92066d642a8 100644
--- a/test/native/src/test/java/org/apache/shardingsphere/test/natived/proxy/databases/MySQLTest.java
+++ b/test/native/src/test/java/org/apache/shardingsphere/test/natived/proxy/databases/MySQLTest.java
@@ -46,9 +46,7 @@ import java.util.Properties;
 class MySQLTest {
     
     @Container
-    private final GenericContainer<?> mysqlContainer = new GenericContainer<>("mysql:9.7.1-oraclelinux9")
-            .withEnv("MYSQL_ROOT_PASSWORD", "yourStrongPassword123!")
-            .withExposedPorts(3306);
+    private final GenericContainer<?> mysqlContainer = new GenericContainer<>("mysql:8.0.40").withEnv("MYSQL_ROOT_PASSWORD", "yourStrongPassword123!").withExposedPorts(3306);
     
     private ProxyTestingServer proxyTestingServer;