title: Quarkus reading application.properties from the @QuarkusTest
body: <p>In my <code>application.properties</code> I have</p>
  
  <pre><code>quarkus.http.root-path=/my-service/api/v2
  </code></pre>
  
  <p>and it works when I run the app and hit the url. (It reads the config on start).</p>
  
  <p>But when I run it from the test:</p>
  
  <pre><code>@QuarkusTest
  @Tag("integration")
  public class MyResourceTest {
      @Test
      public void testMyEndpoint() {
  
          given()
                  .when().get("/my-service/api/v2/init")
                  .then()
                  .statusCode(200)
                  .body(is("{}"));
      }
  </code></pre>
  
  <p>I got <code>404</code>. But it works if do <code>get("/init")</code></p>
  
  <p>Seems that the Test does not know about the <code>application.properties</code>.</p>
  
  <p>I tried to put  <code>application.properties</code> to <code>test/resources</code> folder (similar to what I would do if work with <code>Spring Bootstrap</code> app)</p>
  
  <p>I tried this, assuming it uses the <code>test</code> profile when I run test (did not work):</p>
  
  <pre><code>%test.quarkus.http.root-path=/my-service/api/v2
  </code></pre>
  
  <p><strong>UPDATE:</strong>
   I was able to read my database config though, adding %test to the test/resources/application.properties</p>
  
  <pre><code>#test
  %test.quarkus.datasource.url=vertx-reactive:postgresql://mydb-url:5432/mydb
  </code></pre>
  
  <p>But the <code>quarkus.http.root</code> seems different thing.</p>
  
  <p><strong>Question</strong> is: </p>
  
  <ul>
  <li>how to read <code>quarkus.http.root</code> from properties files for from the integration test? (could not find it in the doc).</li>
  </ul>