You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had some QuarkusTest for custom HealthChecks. With quarkus.http.test-port set to 0 to get a random port. While migrating to Quarkus 3, we choose to enable the management interface.
Now, when I set quarkus.management.test-port to 0, RestAssured still use the port of the HTTP server so my tests failed. I can set the port in the test but I don't know how to get the correct value.
Do you know of a way to get the management interface port ? I can't have a fixed quarkus.management.test-port because sometimes it's taken by another process on integration server
I can get the test http port with ConfigProvider.getConfig().getValue("quarkus.http.test-port", Integer.class) but for the management one, it still return 0
Thanks for your time
Implementation ideas
Could it work the same as quarkus.http.test-port ?
The text was updated successfully, but these errors were encountered:
will421
changed the title
Get management interface resolver port when quarkus.management.test-port set to 0
Get management interface resolved port when quarkus.management.test-port set to 0
Sep 15, 2023
Description
Hi
I had some QuarkusTest for custom HealthChecks. With
quarkus.http.test-port
set to 0 to get a random port. While migrating to Quarkus 3, we choose to enable the management interface.Now, when I set
quarkus.management.test-port
to 0, RestAssured still use the port of the HTTP server so my tests failed. I can set the port in the test but I don't know how to get the correct value.Do you know of a way to get the management interface port ? I can't have a fixed
quarkus.management.test-port
because sometimes it's taken by another process on integration serverI can get the test http port with
ConfigProvider.getConfig().getValue("quarkus.http.test-port", Integer.class)
but for the management one, it still return 0Thanks for your time
Implementation ideas
Could it work the same as
quarkus.http.test-port
?The text was updated successfully, but these errors were encountered: