We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
the config quarkus.config.locations is evaluated before applying the profile.
quarkus.config.locations
quarkus.config.locations=file1.properties %test.quarkus.config.locations=file1.properties,file2.properties
Launching tests, the "Test" profile is activated AFTER the quarkus.config.locations property being read. Thus file2.properties is not getting loaded.
file2.properties
But if you read the property via @ConfigProperty(name = "quarkus.config.locations"), the value is correct.
@ConfigProperty(name = "quarkus.config.locations")
%test.quarkus.config.locations should be evaluated during tests
%test.quarkus.config.locations
the default quarkus.config.locations property is evaluated
The bug is not reproducible using @ConfigProperty(name = "quarkus.config.locations"), that way the property is correctly read.
In order to reproduce you need to read a property declared in the not-loaded-config-file.
uname -a
ver
No response
java -version
17.0.1
2.8.0
mvnw --version
gradlew --version
3.8.4
The text was updated successfully, but these errors were encountered:
As a workaround, use smallrye.config.locations.
smallrye.config.locations
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
Hello,
the config
quarkus.config.locations
is evaluated before applying the profile.Launching tests, the "Test" profile is activated AFTER the
quarkus.config.locations
property being read. Thusfile2.properties
is not getting loaded.But if you read the property via
@ConfigProperty(name = "quarkus.config.locations")
, the value is correct.Expected behavior
%test.quarkus.config.locations
should be evaluated during testsActual behavior
the default
quarkus.config.locations
property is evaluatedHow to Reproduce?
The bug is not reproducible using
@ConfigProperty(name = "quarkus.config.locations")
, that way the property is correctly read.In order to reproduce you need to read a property declared in the not-loaded-config-file.
Output of
uname -a
orver
No response
Output of
java -version
17.0.1
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.8.0
Build tool (ie. output of
mvnw --version
orgradlew --version
)3.8.4
Additional information
No response
The text was updated successfully, but these errors were encountered: