This is an automated email from the ASF dual-hosted git repository.
zrlw pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/dubbo-integration-cases.git
The following commit(s) were added to refs/heads/main by this push:
new 0c0cd066 Fix nacos integration cases (#79)
0c0cd066 is described below
commit 0c0cd0662918ecc96d5a9f2f46d3bff1f5529093
Author: zrlw <[email protected]>
AuthorDate: Sun Nov 9 10:23:07 2025 +0800
Fix nacos integration cases (#79)
* Fix dubbo-samples-test-11137 test service name
* Use mysql instead of derby for dubbo-samples-nacos-merge testing
---
.../case-configuration.yml | 29 ++++++++++++++++++++++
.../case-configuration.yml | 2 +-
2 files changed, 30 insertions(+), 1 deletion(-)
diff --git a/99-integration/dubbo-samples-nacos-merge/case-configuration.yml
b/99-integration/dubbo-samples-nacos-merge/case-configuration.yml
index 029c1760..544f26eb 100644
--- a/99-integration/dubbo-samples-nacos-merge/case-configuration.yml
+++ b/99-integration/dubbo-samples-nacos-merge/case-configuration.yml
@@ -16,15 +16,44 @@
services:
+ nacos-mysql:
+ image: nacos-mysql:5.7
+ environment:
+ - MYSQL_DATABASE=nacos_devtest
+ - MYSQL_ROOT_PASSWORD=root
+ - MYSQL_USER=nacos
+ - MYSQL_PASSWORD=nacos
+ expose:
+ - 3306
+ healthcheck:
+ # mysql host MUST be ip address, if the host is localhost, may connect
via socket file, the port will be ignored
+ test: [ "CMD", "mysqladmin" ,"ping", "-h", "127.0.0.1" ]
+ interval: 5s
+ timeout: 5s
+ retries: 20
+
nacos:
image: nacos/nacos-server:v2.1.2-slim
environment:
- PREFER_HOST_MODE=hostname
- MODE=standalone
- NACOS_AUTH_ENABLE=false
+ - SPRING_DATASOURCE_PLATFORM=mysql
+ - MYSQL_SERVICE_HOST=nacos-mysql
+ - MYSQL_SERVICE_DB_NAME=nacos_devtest
+ - MYSQL_SERVICE_PORT=3306
+ - MYSQL_SERVICE_USER=nacos
+ - MYSQL_SERVICE_PASSWORD=nacos
+ -
MYSQL_SERVICE_DB_PARAM=characterEncoding=utf8&connectTimeout=10000&socketTimeout=30000&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true
- JVM_XMS=512m
- JVM_XMX=512m
- JVM_XMN=256m
+ expose:
+ - 8848
+ - 9848
+ - 9555
+ depends_on:
+ - nacos-mysql
dubbo-samples-nacos-merge-provider1:
type: app
diff --git a/99-integration/dubbo-samples-test-11137/case-configuration.yml
b/99-integration/dubbo-samples-test-11137/case-configuration.yml
index 1e9046f1..8515f731 100644
--- a/99-integration/dubbo-samples-test-11137/case-configuration.yml
+++ b/99-integration/dubbo-samples-test-11137/case-configuration.yml
@@ -30,7 +30,7 @@ services:
- JVM_XMX=512m
- JVM_XMN=256m
- dubbo-samples-test-11096-test:
+ dubbo-samples-test-11137-test:
type: test
basedir: .
tests: