summaryrefslogtreecommitdiffstats
path: root/certService
diff options
context:
space:
mode:
authorPawel <pawel.kasperkiewicz@nokia.com>2020-02-05 11:24:54 +0100
committerPawel <pawel.kasperkiewicz@nokia.com>2020-02-05 11:24:54 +0100
commitdb979302035c3d0b25025b4dd81342a32b5f9496 (patch)
tree314ffd2446649e492280fe5b78927dbb2817a455 /certService
parent40d0466c361c02d96295cab1a6118a204b064539 (diff)
Create healthcheck WS
Issue-ID: AAF-995 Signed-off-by: Pawel Kasperkiewicz <pawel.kasperkiewicz@nokia.com> Change-Id: Ie356ccaa583bcbdcafffb4b15a5db43a1d01ed95
Diffstat (limited to 'certService')
-rw-r--r--certService/README.md17
-rw-r--r--certService/pom.xml6
-rw-r--r--certService/src/main/resources/application.properties3
3 files changed, 25 insertions, 1 deletions
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://<localhost>: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 @@
<spring-boot-starter.version>2.2.4.RELEASE</spring-boot-starter.version>
<maven-javadoc-plugin.version>3.0.1</maven-javadoc-plugin.version>
<maven-surefire-plugin.version>3.0.0-M1</maven-surefire-plugin.version>
+ <spring-boot-starter-actuator.version>2.2.4.RELEASE</spring-boot-starter-actuator.version>
</properties>
<dependencyManagement>
@@ -81,6 +82,11 @@
<version>${assertj-core.version}</version>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>org.springframework.boot</groupId>
+ <artifactId>spring-boot-starter-actuator</artifactId>
+ <version>${spring-boot-starter-actuator.version}</version>
+ </dependency>
</dependencies>
<build>
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