Move all actuators under /application
Context path can be configured via `management.context-path`. Closes gh-6886
This commit is contained in:
@@ -50,7 +50,7 @@ public class SampleHypermediaUiApplicationTests {
|
||||
|
||||
@Test
|
||||
public void links() {
|
||||
String response = this.restTemplate.getForObject("/actuator", String.class);
|
||||
String response = this.restTemplate.getForObject("/application", String.class);
|
||||
assertThat(response).contains("\"_links\":");
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ public class SampleHypermediaUiApplicationTests {
|
||||
public void linksWithJson() throws Exception {
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.setAccept(Arrays.asList(MediaType.APPLICATION_JSON));
|
||||
ResponseEntity<String> response = this.restTemplate.exchange("/actuator",
|
||||
ResponseEntity<String> response = this.restTemplate.exchange("/application",
|
||||
HttpMethod.GET, new HttpEntity<Void>(headers), String.class);
|
||||
assertThat(response.getBody()).contains("\"_links\":");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user