Property expression quarkus.http.test-port
with rest-client not working with 2.4.1
#21332
Labels
Milestone
quarkus.http.test-port
with rest-client not working with 2.4.1
#21332
Describe the bug
I'm having problems after upgrading from 2.3.1.Final to 2.4.1 Final. I'm using property expressions to test my RestClient. The test application.yaml has following properties
so if the tests starts with random port like 61234 then the URL should be http://localhost:61234 . This works when using RestAssured. But this does not work for injected RestClient. But it did work before with 2.3.1.Final. So something must have changed in the mean time.
When debugging and checking the property with ConfigProvider.getConfig().getConfigValue("quarkus.rest-client.example-rest-client.url") it also shows correct URL. I have a strong feeling that this is connected with creation of io.quarkus.restclient.config.RestClientsConfig as it already has the incorrect URL.
It was discussed on Zulip
@radcortez wrote
Expected behavior
Property expressions evaluation works for rest-client properties with 2.4.1.Final
Actual behavior
Property expressions are not evaluated for rest-client
How to Reproduce?
Here is a small reproducer https://github.com/damian-burda/rest-client-prop-expression
Just build it with maven and the test will fail. Switch the version to 2.3.1.Final and it will work again.
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.4.1.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: