-
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
HibernateOrmRestDataPanacheTest is generating a false negative in a non english locale #18017
Comments
/cc @FroMage, @Sanne, @gsmet, @loicmathieu, @yrodiere |
Can you (also) try adding:
to |
Hey @famod, your suggestion seemed like a perfect solution, as it would set the default locale settings for a particular project, without messing up the system-wide locale. Unfortunately, when I tried to set them via the existing Then, I've found out that this is most probably caused by the fact that tests are run by mvn in a forked process, which might cause that the locale is lost, and it defaults to the system one. https://stackoverflow.com/questions/8901880/set-surefire-plugin-locale-in-maven-pom-file https://www.mail-archive.com/[email protected]/msg98949.html This might be solved by configuring the
|
We need to include it in the Surefire config in the pom.xml. We shouldn't require any sort of local adjustments. |
I can try to tackle it, as I'll need it for sth else - as I would like to work on an extension, so I'll be happy to take care of it. |
I already have a patch for it, sorry :) |
@gsmet np, as long as it's done, I'll be happy. |
Here it is: #18048 . Pushing variables for surefire was enough in JVM mode but it's a bit more complicated with native. I ended up configuring Quarkus itself. |
Ah, sure! I forgot that I disabled the propagation of MAVEN_OPTS to surefire not long ago ( @gsmet |
Fixes quarkusio#18017 (cherry picked from commit 0c0b51a)
Describe the bug
I'm using macOS with a polish language/locale set - when I tried to build Quarkus (including tests), it failed at
HibernateOrmRestDataPanacheTest
, with the following output:FYI: the "nie może być odstępem" means exactly "must not be blank".
Expected behavior
Tests are passing regardless of which locale is set.
Actual behavior
Tests are passing in the case when the English locale is set.
To Reproduce
Steps to reproduce the behavior:
HibernateOrmRestDataPanacheTest
(it should fail)Environment (please complete the following information):
LANG=pl_PL.UTF-8
Output of
java -version
openjdk version "13.0.2" 2020-01-14
OpenJDK Runtime Environment (build 13.0.2+8)
OpenJDK 64-Bit Server VM (build 13.0.2+8, mixed mode, sharing)
GraalVM version (if different from Java)
Quarkus version or git rev
787bc2c
I will be happy to take care of this issue, as i.e. it could be fixed by either:
1.) Setting a default locale in
application.properties
, as described here: https://quarkus.io/guides/validation#validation-and-localization2.) Or forcing tests to use a default locale, by configuring it via
maven-surefire-plugin
: https://stackoverflow.com/questions/8901880/set-surefire-plugin-locale-in-maven-pom-fileThe text was updated successfully, but these errors were encountered: