Browse Source

ENTESB-12212: [SB2] Configmap booster is using different health check then other boosters.

release-work-7.0.0.fuse-sb2-760
Andrea Tarocchi 6 years ago
parent
commit
1684d0425a
No known key found for this signature in database
GPG Key ID: EE5630CAB51A767C
  1. 4
      .openshiftio/application.yaml
  2. 1
      src/main/resources/application.properties
  3. 2
      src/test/java/com/redhat/fuse/boosters/rest/http/HttpRequestTest.java

4
.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

1
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

2
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));
}
}

Loading…
Cancel
Save