Skip to content

Update documentation to reflect changes in TestRestTemplate's default redirect behavior #45964

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

Conversation

furmak331
Copy link

fix issue: #45842
I went though the previous PR and changed the documentation .

I have removed :
Redirects are not followed (so you can assert the response location).
I added :
By default, TestRestTemplate follows redirects in the same way as RestTemplate, regardless of which HTTP client implementation is used.

please feel free to suggest any changes .

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 14, 2025
Signed-off-by: furqan <furmak331@gmail.com>
@furmak331 furmak331 force-pushed the update-testresttemplate-documentation branch from 4badfd3 to b182626 Compare June 14, 2025 08:51
@mhalbritter mhalbritter changed the title Fix issue : #46842 Update documentation to reflect changes in TestRestTemplate's default redirect behavior Jun 16, 2025
@wilkinsona
Copy link
Member

Thanks for the proposal, @furmak331, but I don't think we need to mention that the redirect behaviour's the same. I also don't think it makes sense to keep a list of test-friendly features when there's only one.

Thanks again for the PR but I'm going to close this one as I think it would be better for a member of the core team to update the documentation. The alternative is for us to describe exactly how the changed documentation should read which isn't an efficient use of our time and probably isn't a satisfying way to contribute either.

@wilkinsona wilkinsona closed this Jun 17, 2025
@wilkinsona wilkinsona added status: declined A suggestion or change that we don't feel we should currently apply and removed status: waiting-for-triage An issue we've not yet triaged labels Jun 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: declined A suggestion or change that we don't feel we should currently apply
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants