Merge branch '3.3.x' into 3.4.x

This commit is contained in:
Andy Wilkinson 2025-03-07 17:02:22 +00:00
commit 92a063faca
11 changed files with 5 additions and 6 deletions

View File

@ -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")

View File

@ -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

View File

@ -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

View File

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

View File

@ -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;
}