In order for quarkus.http.test-host
to be recognized as valid configuration key, integration tests need to be run.
In order for integration tests to be run, the Failsafe Maven plugin needs to be correctly configured.
If you create your Quarkus application starting from the Getting Started example, please consider that, in such example, the Failsafe plugin is only configured for the native profile of Maven (refer to POM.xml).
As such, in the Getting Started example Failsafe won't be used (and integration tests not run), unless you issue mvn verify -Pnative -Dquarkus.http.test-host=...
You can move the Failsafe plugin configuration in POM.xml out of the native profile, to let it always be run.
When integration tests are run, the output of mnt verify
shows two different test phases: the first for the unit tests (those tests whose names end by "Test"); the second for the integration tests (those tests whose names end by "IT").
In the first phase (unit tests) the quarkus.http.test-host
won't be recognized as valid configuration key. Indeed the output says: "Unrecognized configuration key "quarkus.http.test-host" was provided; it will be ignored; ...".
In the second phase (integration tests), quarkus.http.test-host
will be recognized as valid configuration key.