-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
quarkus-rest-client-reactive related configuration properties problem #21533
Comments
I will have a look. |
Thanks for well written bug report! I think the problem is in incorrect implementation of the I'm going to open a PR. |
The on this page described bug is not fully resolved I guess. If I run my tests with the properties defined like this, it will take the correct If I run my tests with just the test profile property it will also take the correct But if I define the properties like the following, it will take the default property instead. Like on page Quarkus - CONFIGURATION REFERENCE GUIDE documented it should take the |
I will have a look at that. |
@BonomoAlessandro I can't reproduce your problem with 2.5.1.Final neither with current main. Can you open a new issue with a small reproducer if you still experience it? |
Describe the bug
Seems to be related to this one
Tests ignore the
%test
properties for rest clients and try to use the%prod
ones instead.So having properties like these causes a failure in test that try to expand the prod value
Expected behavior
Tests should use the correct profile's properties of rest clients
Actual behavior
Tests use the prod profile's properties of rest clients
How to Reproduce?
Reproducer: https://github.com/nikosk686/quarkus-config-properties-error-showcase
Try to run the test on the example linked above.
The error is:
Workaround, add a default value
%prod.external-service/mp-rest/url=${EXTERNAL_SERVICE_URL:}
and the test passes
Output of
uname -a
orver
Linux dell-desktop 5.10.0-1051-oem #53-Ubuntu SMP Thu Oct 28 08:11:53 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
correto-11 version 11.0.13
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.4.2.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 7.3
Additional information
No response
The text was updated successfully, but these errors were encountered: