You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by zh...@apache.org on 2023/10/17 10:15:48 UTC
[shenyu] branch master updated: [type:fix] fix integrated test http (#5232)
This is an automated email from the ASF dual-hosted git repository.
zhangzicheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu.git
The following commit(s) were added to refs/heads/master by this push:
new 7505fff805 [type:fix] fix integrated test http (#5232)
7505fff805 is described below
commit 7505fff8055f38273beb3501d34b9bee4337b5e3
Author: moremind <he...@apache.org>
AuthorDate: Tue Oct 17 18:15:42 2023 +0800
[type:fix] fix integrated test http (#5232)
* [type:fix] fix integrated test http
* [type:fix] fix integrated test http
* [type:fix] fix integrated test http
* [type:fix] fix integrated test http
* [type:fix] fix integrated test http
* [type:fix] fix integrated test http
---
shenyu-examples/shenyu-examples-https/pom.xml | 5 +++++
.../shenyu-integrated-test-combination/docker-compose.yml | 8 ++++----
.../shenyu-integrated-test-grpc/docker-compose.yml | 2 +-
.../shenyu-integrated-test-http/docker-compose.yml | 4 ++--
.../shenyu-integrated-test-https/docker-compose.yml | 2 +-
.../shenyu-integrated-test-sofa/docker-compose.yml | 2 +-
6 files changed, 14 insertions(+), 9 deletions(-)
diff --git a/shenyu-examples/shenyu-examples-https/pom.xml b/shenyu-examples/shenyu-examples-https/pom.xml
index a10a27e01a..9306bbd63c 100644
--- a/shenyu-examples/shenyu-examples-https/pom.xml
+++ b/shenyu-examples/shenyu-examples-https/pom.xml
@@ -44,6 +44,11 @@
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-actuator</artifactId>
+ </dependency>
+
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
diff --git a/shenyu-integrated-test/shenyu-integrated-test-combination/docker-compose.yml b/shenyu-integrated-test/shenyu-integrated-test-combination/docker-compose.yml
index 03093a6e72..220b95e42b 100644
--- a/shenyu-integrated-test/shenyu-integrated-test-combination/docker-compose.yml
+++ b/shenyu-integrated-test/shenyu-integrated-test-combination/docker-compose.yml
@@ -31,7 +31,7 @@ services:
start_period: 30s
shenyu-redis:
- image: redis:6.0-alpine
+ image: redis:latest
container_name: shenyu-redis
restart: always
command: redis-server --requirepass abc
@@ -51,7 +51,7 @@ services:
environment:
- shenyu.register.serverLists=http://shenyu-admin:9095
healthcheck:
- test: [ "CMD", "wget", "http://shenyu-examples-http:8189/test/path/123?name=tom" ]
+ test: ["CMD-SHELL", "wget -q -O - http://shenyu-examples-http:8189/actuator/health | grep UP || exit 1"]
timeout: 2s
retries: 30
ports:
@@ -98,7 +98,7 @@ services:
environment:
- shenyu.register.serverLists=http://shenyu-admin:9095
healthcheck:
- test: [ "CMD-SHELL", "wget -q -O - http://localhost:55290/test/grpc/hello | grep UP || exit 1" ]
+ test: [ "CMD-SHELL", "wget -q -O - http://localhost:55290/grpc/actuator/health | grep UP || exit 1" ]
timeout: 2s
retries: 3
start_period: 5s
@@ -149,7 +149,7 @@ services:
- shenyu.register.serverLists=http://shenyu-admin:9095
- com.alipay.sofa.rpc.registry-address=zookeeper://shenyu-zk:2181
healthcheck:
- test: [ "CMD-SHELL", "wget -q -O - http://localhost:28011/sofa/findAll | grep UP || exit 1" ]
+ test: [ "CMD-SHELL", "wget -q -O - http://localhost:28011/actuator/health | grep UP || exit 1" ]
timeout: 2s
retries: 3
start_period: 5s
diff --git a/shenyu-integrated-test/shenyu-integrated-test-grpc/docker-compose.yml b/shenyu-integrated-test/shenyu-integrated-test-grpc/docker-compose.yml
index 32d6b6e124..aee2e037ff 100644
--- a/shenyu-integrated-test/shenyu-integrated-test-grpc/docker-compose.yml
+++ b/shenyu-integrated-test/shenyu-integrated-test-grpc/docker-compose.yml
@@ -43,7 +43,7 @@ services:
environment:
- shenyu.register.serverLists=http://shenyu-admin:9095
healthcheck:
- test: [ "CMD-SHELL", "wget -q -O - http://localhost:55290/test/grpc/hello | grep UP || exit 1" ]
+ test: [ "CMD-SHELL", "wget -q -O - http://localhost:55290/grpc/actuator/health | grep UP || exit 1" ]
timeout: 2s
retries: 3
start_period: 5s
diff --git a/shenyu-integrated-test/shenyu-integrated-test-http/docker-compose.yml b/shenyu-integrated-test/shenyu-integrated-test-http/docker-compose.yml
index 5d8d5b8caf..e1eb85fb38 100644
--- a/shenyu-integrated-test/shenyu-integrated-test-http/docker-compose.yml
+++ b/shenyu-integrated-test/shenyu-integrated-test-http/docker-compose.yml
@@ -17,12 +17,12 @@ version: "3.9"
services:
shenyu-zk:
container_name: shenyu-zk
- image: zookeeper:3.5
+ image: zookeeper:latest
restart: always
networks:
- shenyu
shenyu-redis:
- image: redis:6.0-alpine
+ image: redis:latest
container_name: shenyu-redis
restart: always
command: redis-server --requirepass abc
diff --git a/shenyu-integrated-test/shenyu-integrated-test-https/docker-compose.yml b/shenyu-integrated-test/shenyu-integrated-test-https/docker-compose.yml
index 16b5fbccc4..8da015aecd 100644
--- a/shenyu-integrated-test/shenyu-integrated-test-https/docker-compose.yml
+++ b/shenyu-integrated-test/shenyu-integrated-test-https/docker-compose.yml
@@ -64,7 +64,7 @@ services:
environment:
- shenyu_register_serverLists=http://shenyu-admin:9095
healthcheck:
- test: [ "CMD", "wget", "http://shenyu-examples-https:8080/order/findById?id=3" ]
+ test: [ "CMD", "wget", "http://shenyu-examples-https:8190/actuator/health" ]
timeout: 2s
retries: 30
ports:
diff --git a/shenyu-integrated-test/shenyu-integrated-test-sofa/docker-compose.yml b/shenyu-integrated-test/shenyu-integrated-test-sofa/docker-compose.yml
index 7d679d138d..d23868e330 100644
--- a/shenyu-integrated-test/shenyu-integrated-test-sofa/docker-compose.yml
+++ b/shenyu-integrated-test/shenyu-integrated-test-sofa/docker-compose.yml
@@ -56,7 +56,7 @@ services:
- shenyu.register.serverLists=http://shenyu-admin:9095
- com.alipay.sofa.rpc.registry-address=zookeeper://shenyu-zk:2181
healthcheck:
- test: [ "CMD-SHELL", "wget -q -O - http://localhost:28011/sofa/findAll | grep UP || exit 1" ]
+ test: [ "CMD-SHELL", "wget -q -O - http://localhost:28011/actuator/health | grep UP || exit 1" ]
timeout: 2s
retries: 3
start_period: 5s