From f39f33bb8d13c29ca3e72b1efbea60d0587ad997 Mon Sep 17 00:00:00 2001 From: Madhura Bhave Date: Thu, 6 Aug 2020 17:57:56 -0700 Subject: [PATCH] Fix documentation related to the health endpoint's inner details Closes gh-22490 --- .../web/documentation/HealthEndpointDocumentationTests.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/HealthEndpointDocumentationTests.java b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/HealthEndpointDocumentationTests.java index 588bbe881a..22422489d0 100644 --- a/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/HealthEndpointDocumentationTests.java +++ b/spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/HealthEndpointDocumentationTests.java @@ -81,8 +81,7 @@ class HealthEndpointDocumentationTests extends MockMvcEndpointDocumentationTests .description("The nested components that make up the health.").optional(); FieldDescriptor componentDetails = subsectionWithPath("components.*.details") .description("Details of the health of a specific part of the application. " - + "Presence is controlled by `management.endpoint.health.show-details`. May contain nested " - + "components that make up the health.") + + "Presence is controlled by `management.endpoint.health.show-details`.") .optional(); this.mockMvc.perform(get("/actuator/health").accept(MediaType.APPLICATION_JSON)).andExpect(status().isOk()) .andDo(document("health",