spring-cloud / spring-cloud/spring-cloud-gateway
Missing test auto-configuration imports
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 4.9k
- Forks
- 3.5k
- Avg merge
- 20h 57m
- Merged PRs (30d)
- 8
Description
Spring Boot 3 requires more auto-configuration imports files for test (slice) auto-configuration. Issue 2729 was incomplete.
Currently spring-cloud-gateway-mvc and spring-cloud-gateway-webflux still use the legacy auto-configuration which is not supported anymore. Therefore, the test slices don't get the correct configuration which is needed to let Spring inject a ProxyExchange argument.
All 4.x versions are impacted.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with spring-cloud-gateway-mvc/src/main/resources/META-INF/spring.factories and spring-cloud-gateway-webflux/src/main/resources/META-INF/spring.factories, then review Spring Boot 3 test auto-configuration import requirements. Check the relevant test-slice configuration and verify that Spring can inject a ProxyExchange argument after the imports are corrected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring, spring-boot
- Domain
- backend, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100