Document that spring.profiles.active is ignored by the TCF#36594
Open
Mohak-Nagaraju wants to merge 1 commit intospring-projects:6.1.xfrom
Open
Document that spring.profiles.active is ignored by the TCF#36594Mohak-Nagaraju wants to merge 1 commit intospring-projects:6.1.xfrom
Mohak-Nagaraju wants to merge 1 commit intospring-projects:6.1.xfrom
Conversation
The Test Context Framework does not honor the spring.profiles.active system property when determining active profiles for a test class. This commit documents that behavior in the @activeprofiles and DefaultActiveProfilesResolver Javadoc, as well as in the reference manual. A SystemPropertyActiveProfilesResolver example is also added showing how to allow spring.profiles.active to override @activeprofiles. Closes spring-projectsgh-36269 Signed-off-by: Mohak Nagaraju <98132980+Mohak-Nagaraju@users.noreply.github.com>
4cd0cfd to
f99f696
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Test Context Framework does not honor the
spring.profiles.active system property when determining
active profiles for a test class.
This commit documents that behavior in the following places:
Profiles section, including a new
SystemPropertyActiveProfilesResolver example showing how
to allow spring.profiles.active to override @activeprofiles
Note: this was done against 6.1.x. Happy to retarget
to main if preferred.
Closes gh-36269