diff --git a/.openshiftio/application.yaml b/.openshiftio/application.yaml index d2aa8e4..ff7683d 100644 --- a/.openshiftio/application.yaml +++ b/.openshiftio/application.yaml @@ -169,7 +169,7 @@ objects: imagePullPolicy: IfNotPresent livenessProbe: httpGet: - path: /health + path: /actuator/health port: 8080 scheme: HTTP initialDelaySeconds: 180 @@ -186,7 +186,7 @@ objects: protocol: TCP readinessProbe: httpGet: - path: /health + path: /actuator/health port: 8080 scheme: HTTP initialDelaySeconds: 10 diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 5b388dc..57ab22d 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,5 +1,4 @@ server.port=8080 -management.endpoints.web.base-path=/ # disable all management enpoints except health endpoints.enabled = false diff --git a/src/test/java/com/redhat/fuse/boosters/rest/http/HttpRequestTest.java b/src/test/java/com/redhat/fuse/boosters/rest/http/HttpRequestTest.java index be6a627..f7f5256 100644 --- a/src/test/java/com/redhat/fuse/boosters/rest/http/HttpRequestTest.java +++ b/src/test/java/com/redhat/fuse/boosters/rest/http/HttpRequestTest.java @@ -26,6 +26,6 @@ public class HttpRequestTest { @Test public void healthShouldReturnOkMessage() throws Exception { - Assert.assertEquals( "{\"status\":\"UP\"}", this.restTemplate.getForObject("http://localhost:" + port + "/health", String.class)); + Assert.assertEquals( "{\"status\":\"UP\"}", this.restTemplate.getForObject("http://localhost:" + port + "/actuator/health", String.class)); } }