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

Introduce TestSocketUtils as a replacement for SocketUtils #28210

Closed
sbrannen opened this issue Mar 21, 2022 · 4 comments
Closed

Introduce TestSocketUtils as a replacement for SocketUtils #28210

sbrannen opened this issue Mar 21, 2022 · 4 comments
Labels
in: test Issues in the test module status: superseded An issue that has been superseded by another type: enhancement A general enhancement

Comments

@sbrannen
Copy link
Member

sbrannen commented Mar 21, 2022

SocketUtils was officially deprecated in 5.3.16 (#28052) and removed in 6.0 M3 (#28054); however, there is still need for a subset of this functionality in integration tests for testing scenarios in which it is not possible for the system under test to select its own random port (or rely on the operating system to provide an ephemeral port).

We will therefore introduce a scaled down version in spring-test called TestSocketUtils, supporting retrieval of a single TCP port, and potentially with a simple retry mechanism that allows test code using the available port to be retried a given number of times if an exception is thrown.

@asibross
Copy link

Was this added to any 5.3.x version?

@sbrannen
Copy link
Member Author

Was this added to any 5.3.x version?

No, this issue is still open and assigned to the 5.3.x backlog.

@artemptushkin
Copy link

Spring boot 3 is coming and this would be really needed, any chance we can raise the priority?

@sbrannen sbrannen modified the milestones: 5.3.x, 5.3.24 Nov 1, 2022
@sbrannen sbrannen removed this from the 5.3.24 milestone Nov 14, 2022
@sbrannen sbrannen added the status: superseded An issue that has been superseded by another label Nov 14, 2022
@sbrannen
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: test Issues in the test module status: superseded An issue that has been superseded by another type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants