Skip to content

Commit 6a5aa42

Browse files
committed
Add defaultProfiles in EnvironmentEndpointDocumentationTests
1 parent c7b06a8 commit 6a5aa42

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/test/java/org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/EnvironmentEndpointDocumentationTests.java

+5-2
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ class EnvironmentEndpointDocumentationTests extends MockMvcEndpointDocumentation
6464
private static final FieldDescriptor activeProfiles = fieldWithPath("activeProfiles")
6565
.description("Names of the active profiles, if any.");
6666

67+
private static final FieldDescriptor defaultProfiles = fieldWithPath("defaultProfiles")
68+
.description("Names of the default profiles, if any.");
69+
6770
private static final FieldDescriptor propertySources = fieldWithPath("propertySources")
6871
.description("Property sources in order of precedence.");
6972

@@ -79,7 +82,7 @@ void env() throws Exception {
7982
replacePattern(Pattern.compile(
8083
"org/springframework/boot/actuate/autoconfigure/endpoint/web/documentation/"), ""),
8184
filterProperties()),
82-
responseFields(activeProfiles, propertySources, propertySourceName,
85+
responseFields(activeProfiles, defaultProfiles, propertySources, propertySourceName,
8386
fieldWithPath("propertySources.[].properties")
8487
.description("Properties in the property source keyed by property name."),
8588
fieldWithPath("propertySources.[].properties.*.value")
@@ -101,7 +104,7 @@ void singlePropertyFromEnv() throws Exception {
101104
.optional(),
102105
fieldWithPath("property.source").description("Name of the source of the property."),
103106
fieldWithPath("property.value").description("Value of the property."), activeProfiles,
104-
propertySources, propertySourceName,
107+
defaultProfiles, propertySources, propertySourceName,
105108
fieldWithPath("propertySources.[].property")
106109
.description("Property in the property source, if any.")
107110
.optional(),

0 commit comments

Comments
 (0)