Browse Source

Adapt assertion for availability probes being available by default

See gh-22825
pull/47209/head
Stéphane Nicoll 3 months ago
parent
commit
7ca0323878
  1. 2
      system-test/spring-boot-deployment-system-tests/src/systemTest/java/org/springframework/boot/deployment/AbstractDeploymentTests.java

2
system-test/spring-boot-deployment-system-tests/src/systemTest/java/org/springframework/boot/deployment/AbstractDeploymentTests.java

@ -60,7 +60,7 @@ abstract class AbstractDeploymentTests { @@ -60,7 +60,7 @@ abstract class AbstractDeploymentTests {
getDeployedApplication().test((rest) -> {
ResponseEntity<String> response = rest.getForEntity("/actuator/health", String.class);
assertThat(response.getStatusCode()).isEqualTo(HttpStatus.OK);
assertThat(response.getBody()).isEqualTo("{\"status\":\"UP\"}");
assertThat(response.getBody()).isEqualTo("{\"groups\":[\"liveness\",\"readiness\"],\"status\":\"UP\"}");
});
}

Loading…
Cancel
Save