This is an automated email from the ASF dual-hosted git repository.
duanzhengqiang 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 079fb94374b Add jdbc data source config for transaction E2E (#34183)
079fb94374b is described below
commit 079fb94374beae87f82ace1b9738d6d8e4386486
Author: ZhangCheng <[email protected]>
AuthorDate: Fri Dec 27 17:51:31 2024 +0800
Add jdbc data source config for transaction E2E (#34183)
---
.../jdbc/mysql/database-sharding-xa-atomikos.yaml | 33 ++++++++++++++++++++++
.../jdbc/mysql/database-sharding-xa-narayana.yaml | 33 ++++++++++++++++++++++
2 files changed, 66 insertions(+)
diff --git
a/test/e2e/operation/transaction/src/test/resources/env/jdbc/mysql/database-sharding-xa-atomikos.yaml
b/test/e2e/operation/transaction/src/test/resources/env/jdbc/mysql/database-sharding-xa-atomikos.yaml
index e653140e92f..db32497ef32 100644
---
a/test/e2e/operation/transaction/src/test/resources/env/jdbc/mysql/database-sharding-xa-atomikos.yaml
+++
b/test/e2e/operation/transaction/src/test/resources/env/jdbc/mysql/database-sharding-xa-atomikos.yaml
@@ -22,6 +22,39 @@
######################################################################################################
databaseName: sharding_db
+
+dataSources:
+ ds_0:
+ url:
jdbc:mysql://mysql.default.host:3306/ds_0?useSSL=true&requireSSL=true&enabledTLSProtocols=TLSv1.2,TLSv1.3&verifyServerCertificate=false&useServerPrepStmts=true&useLocalSessionState=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true&allowMultiQueries=true&rewriteBatchedStatements=true
+ dataSourceClassName: com.zaxxer.hikari.HikariDataSource
+ username: test_user
+ password: Test@123
+ connectionTimeoutMilliseconds: 30000
+ idleTimeoutMilliseconds: 60000
+ maxLifetimeMilliseconds: 1800000
+ maxPoolSize: 50
+ minPoolSize: 2
+ ds_1:
+ url:
jdbc:mysql://mysql.default.host:3306/ds_1?useSSL=true&requireSSL=true&enabledTLSProtocols=TLSv1.2,TLSv1.3&verifyServerCertificate=false&useServerPrepStmts=true&useLocalSessionState=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true&allowMultiQueries=true&rewriteBatchedStatements=true
+ dataSourceClassName: com.zaxxer.hikari.HikariDataSource
+ username: test_user
+ password: Test@123
+ connectionTimeoutMilliseconds: 30000
+ idleTimeoutMilliseconds: 60000
+ maxLifetimeMilliseconds: 1800000
+ maxPoolSize: 50
+ minPoolSize: 2
+ ds_2:
+ url:
jdbc:mysql://mysql.default.host:3306/ds_2?useSSL=true&requireSSL=true&enabledTLSProtocols=TLSv1.2,TLSv1.3&verifyServerCertificate=false&useServerPrepStmts=true&useLocalSessionState=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true&allowMultiQueries=true&rewriteBatchedStatements=true
+ dataSourceClassName: com.zaxxer.hikari.HikariDataSource
+ username: test_user
+ password: Test@123
+ connectionTimeoutMilliseconds: 30000
+ idleTimeoutMilliseconds: 60000
+ maxLifetimeMilliseconds: 1800000
+ maxPoolSize: 50
+ minPoolSize: 2
+
rules:
- !SHARDING
tables:
diff --git
a/test/e2e/operation/transaction/src/test/resources/env/jdbc/mysql/database-sharding-xa-narayana.yaml
b/test/e2e/operation/transaction/src/test/resources/env/jdbc/mysql/database-sharding-xa-narayana.yaml
index 4aa7346308d..36c313876c3 100644
---
a/test/e2e/operation/transaction/src/test/resources/env/jdbc/mysql/database-sharding-xa-narayana.yaml
+++
b/test/e2e/operation/transaction/src/test/resources/env/jdbc/mysql/database-sharding-xa-narayana.yaml
@@ -22,6 +22,39 @@
######################################################################################################
databaseName: sharding_db
+
+dataSources:
+ ds_0:
+ url:
jdbc:mysql://mysql.default.host:3306/ds_0?useSSL=true&requireSSL=true&enabledTLSProtocols=TLSv1.2,TLSv1.3&verifyServerCertificate=false&useServerPrepStmts=true&useLocalSessionState=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true&allowMultiQueries=true&rewriteBatchedStatements=true
+ dataSourceClassName: com.zaxxer.hikari.HikariDataSource
+ username: test_user
+ password: Test@123
+ connectionTimeoutMilliseconds: 30000
+ idleTimeoutMilliseconds: 60000
+ maxLifetimeMilliseconds: 1800000
+ maxPoolSize: 50
+ minPoolSize: 2
+ ds_1:
+ url:
jdbc:mysql://mysql.default.host:3306/ds_1?useSSL=true&requireSSL=true&enabledTLSProtocols=TLSv1.2,TLSv1.3&verifyServerCertificate=false&useServerPrepStmts=true&useLocalSessionState=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true&allowMultiQueries=true&rewriteBatchedStatements=true
+ dataSourceClassName: com.zaxxer.hikari.HikariDataSource
+ username: test_user
+ password: Test@123
+ connectionTimeoutMilliseconds: 30000
+ idleTimeoutMilliseconds: 60000
+ maxLifetimeMilliseconds: 1800000
+ maxPoolSize: 50
+ minPoolSize: 2
+ ds_2:
+ url:
jdbc:mysql://mysql.default.host:3306/ds_2?useSSL=true&requireSSL=true&enabledTLSProtocols=TLSv1.2,TLSv1.3&verifyServerCertificate=false&useServerPrepStmts=true&useLocalSessionState=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true&allowMultiQueries=true&rewriteBatchedStatements=true
+ dataSourceClassName: com.zaxxer.hikari.HikariDataSource
+ username: test_user
+ password: Test@123
+ connectionTimeoutMilliseconds: 30000
+ idleTimeoutMilliseconds: 60000
+ maxLifetimeMilliseconds: 1800000
+ maxPoolSize: 50
+ minPoolSize: 2
+
rules:
- !SHARDING
tables: