spring-cloud / spring-cloud/spring-cloud-gateway

Missing test auto-configuration imports

Open
#3,708 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

waiting-for-triage
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.