Merge branch '3.4.x'
This commit is contained in:
@@ -57,7 +57,7 @@ import static org.springframework.restdocs.payload.PayloadDocumentation.response
|
||||
* @author Andy Wilkinson
|
||||
*/
|
||||
@TestPropertySource(
|
||||
properties = "spring.config.location=classpath:/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/")
|
||||
properties = "spring.config.location=classpath:/org/springframework/boot/actuate/autoconfigure/env/")
|
||||
class EnvironmentEndpointDocumentationTests extends MockMvcEndpointDocumentationTests {
|
||||
|
||||
private static final FieldDescriptor activeProfiles = fieldWithPath("activeProfiles")
|
||||
|
||||
@@ -46,7 +46,7 @@ import static org.springframework.restdocs.payload.PayloadDocumentation.response
|
||||
* @author Andy Wilkinson
|
||||
*/
|
||||
@TestPropertySource(
|
||||
properties = "spring.flyway.locations=classpath:org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation")
|
||||
properties = "spring.flyway.locations=classpath:org/springframework/boot/actuate/autoconfigure/flyway")
|
||||
class FlywayEndpointDocumentationTests extends MockMvcEndpointDocumentationTests {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -44,7 +44,7 @@ import static org.springframework.restdocs.payload.PayloadDocumentation.response
|
||||
* @author Andy Wilkinson
|
||||
*/
|
||||
@TestPropertySource(
|
||||
properties = "spring.liquibase.change-log=classpath:org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/db.changelog-master.yaml")
|
||||
properties = "spring.liquibase.change-log=classpath:org/springframework/boot/actuate/autoconfigure/liquibase/db.changelog-master.yaml")
|
||||
class LiquibaseEndpointDocumentationTests extends MockMvcEndpointDocumentationTests {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -56,7 +56,7 @@ class LogFileWebEndpointDocumentationTests extends MockMvcEndpointDocumentationT
|
||||
LogFileWebEndpoint endpoint() {
|
||||
MockEnvironment environment = new MockEnvironment();
|
||||
environment.setProperty("logging.file.name",
|
||||
"src/test/resources/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/sample.log");
|
||||
"src/test/resources/org/springframework/boot/actuate/autoconfigure/logging/sample.log");
|
||||
return new LogFileWebEndpoint(LogFile.get(environment), null);
|
||||
}
|
||||
|
||||
|
||||
@@ -58,8 +58,7 @@ class SbomEndpointDocumentationTests extends MockMvcEndpointDocumentationTests {
|
||||
SbomProperties sbomProperties() {
|
||||
SbomProperties properties = new SbomProperties();
|
||||
properties.getApplication()
|
||||
.setLocation(
|
||||
"classpath:org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/cyclonedx.json");
|
||||
.setLocation("classpath:org/springframework/boot/actuate/autoconfigure/sbom/cyclonedx.json");
|
||||
return properties;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user