diff --git a/integration-tests/vertx-http/src/test/java/io/quarkus/it/vertx/VertxProducerResourceIT.java b/integration-tests/vertx-http/src/test/java/io/quarkus/it/vertx/VertxProducerResourceIT.java index f5c9009658985..6b544f107015a 100644 --- a/integration-tests/vertx-http/src/test/java/io/quarkus/it/vertx/VertxProducerResourceIT.java +++ b/integration-tests/vertx-http/src/test/java/io/quarkus/it/vertx/VertxProducerResourceIT.java @@ -1,8 +1,25 @@ package io.quarkus.it.vertx; +import static io.restassured.RestAssured.given; +import static org.hamcrest.Matchers.containsString; + +import org.junit.jupiter.api.Test; + import io.quarkus.test.junit.NativeImageTest; +import io.restassured.builder.RequestSpecBuilder; +import io.restassured.specification.RequestSpecification; @NativeImageTest public class VertxProducerResourceIT extends VertxProducerResourceTest { -} \ No newline at end of file + @Test + public void testRouteRegistrationMTLS() { + RequestSpecification spec = new RequestSpecBuilder() + .setBaseUri(String.format("%s://%s", url.getProtocol(), url.getHost())) + .setPort(8443) + .setKeyStore("client-keystore.jks", "password") + .setTrustStore("client-truststore.jks", "password") + .build(); + given().spec(spec).get("/my-path").then().body(containsString("OK")); + } +} diff --git a/integration-tests/vertx-http/src/test/java/io/quarkus/it/vertx/VertxProducerResourceTest.java b/integration-tests/vertx-http/src/test/java/io/quarkus/it/vertx/VertxProducerResourceTest.java index 5d9ff7450a2d4..33c9e89523725 100644 --- a/integration-tests/vertx-http/src/test/java/io/quarkus/it/vertx/VertxProducerResourceTest.java +++ b/integration-tests/vertx-http/src/test/java/io/quarkus/it/vertx/VertxProducerResourceTest.java @@ -9,6 +9,7 @@ import org.junit.jupiter.api.Test; import io.quarkus.test.common.http.TestHTTPResource; +import io.quarkus.test.junit.DisabledOnSubstrate; import io.quarkus.test.junit.QuarkusTest; import io.restassured.builder.RequestSpecBuilder; import io.restassured.specification.RequestSpecification; @@ -29,6 +30,7 @@ public void testRouteRegistration() { get("/my-path").then().body(containsString("OK")); } + @DisabledOnSubstrate @Test public void testRouteRegistrationMTLS() { RequestSpecification spec = new RequestSpecBuilder()