-
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
Http Root Path is not gathered by NativeImageTest #11072
Comments
It's really hard to try and figure out what's going on without a reproducer project - do you perhaps have one that demonstrates this issue? |
Thank you @geoand for your fast respone 😊 I couldn't reproduce with a minimal project: here is the source of the Proof-of-concept that is having the issue. Just fyi, the I've made a workaround, is to add the |
I found the origin of this issue @geoand .. it happens when there is two I moved back the test properties to the main Is it still to be an issue ? or it's mandatory/recommended to have only one |
Yeah, it's best to have a single one. Let's close this for now, but feel free to reopen or open another more focused issue about the test properties issue. |
Okey ! Thank you @geoand ! 😃 |
Thanks for reporting |
…s#11072 - refactoring code
Describe the bug
I'm create a CRUD application that is using Postgresql as database. And for tests:
In the @QuarkusTest classes everything is working perfectly.
Expected behavior
I expect that running the tests using :
./mvnw clean verify -Pnative
but it's failing.Actual behavior
The Rest Assured is giving status code 404 while the expected is 200..
I made a test that has a tread sleep, so I can check what is running inside the tested runtime.. I found my APIs available on the expected URLs and nothing is wrong.. I even get the data from the testcontainer db created for the tests using the QuarkusTestResource..
UPDATE: As I have the
quarkus.http.root-path=/api
configured. I duplicated the tests, while point on /customers in @QuarkusTest and /api/customers in @NativeImageTest, all the tests are passing successfully.Even if I add
%prod.quarkus.http.root-path=/api
, the prefix never got discovered by the @NativeImageTest 😭To Reproduce
Steps to reproduce the behavior:
./mvnw clean verify -Pnative
Configuration
Main application.properties:
Tests application.properties:
Environment (please complete the following information):
uname -a
orver
: 5.4.0-42-generic Add proper logging #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64 x86_64 x86_64 GNU/Linuxjava -version
: OpenJDK 64-Bit Server VM GraalVM CE 20.1.0 (build 11.0.7+10-jvmci-20.1-b02, mixed mode, sharing)mvnw --version
orgradlew --version
): 3.6.3The text was updated successfully, but these errors were encountered: