From c85d40b0cc8f40e5d0e17019878df82170f7bb35 Mon Sep 17 00:00:00 2001 From: sebdet Date: Tue, 10 Sep 2019 15:57:10 +0200 Subject: Repair healthcheck HealthCheck was always returning 200 even if the db was not up and running Issue-ID: CLAMP-494 Change-Id: I85aa427a212c6cde568d3863d1ab1a1a11c71f16 Signed-off-by: sebdet --- src/main/resources/META-INF/resources/swagger.html | 2 +- .../resources/clds/camel/rest/clamp-api-v2.xml | 2 +- .../resources/clds/camel/rest/clds-services.xml | 26 +++++++++++++++------- 3 files changed, 20 insertions(+), 10 deletions(-) (limited to 'src/main/resources') diff --git a/src/main/resources/META-INF/resources/swagger.html b/src/main/resources/META-INF/resources/swagger.html index d2ec9660..d3b38b69 100644 --- a/src/main/resources/META-INF/resources/swagger.html +++ b/src/main/resources/META-INF/resources/swagger.html @@ -588,7 +588,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b

1.2. URI scheme

-

Host : localhost:40147
+

Host : localhost:36829
BasePath : /restservices/clds/
Schemes : HTTP

diff --git a/src/main/resources/clds/camel/rest/clamp-api-v2.xml b/src/main/resources/clds/camel/rest/clamp-api-v2.xml index 6ee44cad..cf99625e 100644 --- a/src/main/resources/clds/camel/rest/clamp-api-v2.xml +++ b/src/main/resources/clds/camel/rest/clamp-api-v2.xml @@ -68,7 +68,7 @@ + uri="bean:org.onap.clamp.loop.LoopController?method=getSvgRepresentation(${header.loopName})" /> diff --git a/src/main/resources/clds/camel/rest/clds-services.xml b/src/main/resources/clds/camel/rest/clds-services.xml index b3061dc4..dd3a4bfd 100644 --- a/src/main/resources/clds/camel/rest/clds-services.xml +++ b/src/main/resources/clds/camel/rest/clds-services.xml @@ -1,19 +1,29 @@ - - + - - + + + + + + + ${body} == 'NOT-OK' + + 404 + + + + - + -- cgit 1.2.3-korg