Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove spring.config.use-legacy-processing in tests #4900

Merged
merged 1 commit into from Jun 2, 2023

Conversation

minwoox
Copy link
Member

@minwoox minwoox commented May 26, 2023

Motivation:
When we upgrade to Spring Boot 2.4, we used spring.config.use-legacy-processing property because main application.yml overrides the yaml files in the test. However, it was a bug and was fixed.
spring-projects/spring-boot#24719 Therefore, we don't have to use spring.config.use-legacy-processing anymore.

Modifications:

  • Remove spring.config.use-legacy-processing property

Result:

Motivation:
When we upgrade to Spring Boot 2.4, we used `spring.config.use-legacy-processing` property because main application.yml overrides the yaml files in test.
However, it was a bug and fixed.
spring-projects/spring-boot#24719
Therefore, we don't have to use `spring.config.use-legacy-processing` anymore.

Modifications:
- Remove `spring.config.use-legacy-processing` property

Result:
- Close line#4899
@@ -6,4 +6,4 @@ spring.config.activate.on-profile: local
armeria:
ports:
- port: 8080
protocol: HTTP
protocols: HTTP
Copy link
Member Author

@minwoox minwoox May 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This field is a list and we can just specify the element without enclosing brackets. e.g. [HTTP]
It's because Spring has relaxed rule for the list value.
However, this doesn't apply to Dropwizard so we cannot use the same rule.

Copy link
Member

@trustin trustin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for cleaning this up, @minwoox! 🙇

Copy link
Contributor

@jrhee17 jrhee17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @minwoox ! 👍 🙇 👍

@ikhoon ikhoon added the cleanup label Jun 2, 2023
@ikhoon ikhoon added this to the 1.24.0 milestone Jun 2, 2023
Copy link
Contributor

@ikhoon ikhoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for cleaning up!

@ikhoon ikhoon merged commit 7d731ec into line:main Jun 2, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do not use spring.config.use-legacy-processing in our test application file
4 participants