From db979302035c3d0b25025b4dd81342a32b5f9496 Mon Sep 17 00:00:00 2001 From: Pawel Date: Wed, 5 Feb 2020 11:24:54 +0100 Subject: Create healthcheck WS Issue-ID: AAF-995 Signed-off-by: Pawel Kasperkiewicz Change-Id: Ie356ccaa583bcbdcafffb4b15a5db43a1d01ed95 --- certService/README.md | 17 ++++++++++++++++- certService/pom.xml | 6 ++++++ certService/src/main/resources/application.properties | 3 +++ 3 files changed, 25 insertions(+), 1 deletion(-) (limited to 'certService') diff --git a/certService/README.md b/certService/README.md index 72660cdc..04d78431 100644 --- a/certService/README.md +++ b/certService/README.md @@ -30,4 +30,19 @@ docker run -p 8080:8080 --name cert-service cert-service ``` - + +### Health Check + Browser: + + ``` + http://:8080/actuator/health + + ``` + + Curl: + + ``` + curl localhost:8080/actuator/health + + ``` + Should return {"status":"UP"} diff --git a/certService/pom.xml b/certService/pom.xml index b5410e5c..21d212f1 100644 --- a/certService/pom.xml +++ b/certService/pom.xml @@ -36,6 +36,7 @@ 2.2.4.RELEASE 3.0.1 3.0.0-M1 + 2.2.4.RELEASE @@ -81,6 +82,11 @@ ${assertj-core.version} test + + org.springframework.boot + spring-boot-starter-actuator + ${spring-boot-starter-actuator.version} + diff --git a/certService/src/main/resources/application.properties b/certService/src/main/resources/application.properties index e69de29b..43f65f09 100644 --- a/certService/src/main/resources/application.properties +++ b/certService/src/main/resources/application.properties @@ -0,0 +1,3 @@ +#Actuator properties +management.endpoints.enabled-by-default=false +management.endpoint.health.enabled=true \ No newline at end of file -- cgit 1.2.3-korg