Create healthcheck WS
authorPawel <pawel.kasperkiewicz@nokia.com>
Wed, 5 Feb 2020 10:24:54 +0000 (11:24 +0100)
committerPawel <pawel.kasperkiewicz@nokia.com>
Wed, 5 Feb 2020 10:24:54 +0000 (11:24 +0100)
Issue-ID: AAF-995
Signed-off-by: Pawel Kasperkiewicz <pawel.kasperkiewicz@nokia.com>
Change-Id: Ie356ccaa583bcbdcafffb4b15a5db43a1d01ed95

certService/README.md
certService/pom.xml
certService/src/main/resources/application.properties

index 72660cd..04d7843 100644 (file)
     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"}
index b5410e5..21d212f 100644 (file)
@@ -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>
             <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>
index e69de29..43f65f0 100644 (file)
@@ -0,0 +1,3 @@
+#Actuator properties
+management.endpoints.enabled-by-default=false
+management.endpoint.health.enabled=true
\ No newline at end of file