-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use correct ports for MTLS native test
Native runs in prod profile and so doesn't use the set test ports, need to explicitly use the same port as would be used in prod. Currently hardcoded though. Use different method to include resources, specify all jks rather than using resource file. Fix import order Correct algorithm used in keystores, can't use DSA in Java 11+
- Loading branch information
Showing
8 changed files
with
21 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
integration-tests/vertx-http/src/main/resources/resources-config.json
This file was deleted.
Oops, something went wrong.
Binary file modified
BIN
+251 Bytes
(110%)
integration-tests/vertx-http/src/main/resources/server-keystore.jks
Binary file not shown.
Binary file modified
BIN
-353 Bytes
(72%)
integration-tests/vertx-http/src/main/resources/server-truststore.jks
Binary file not shown.
19 changes: 18 additions & 1 deletion
19
integration-tests/vertx-http/src/test/java/io/quarkus/it/vertx/VertxProducerResourceIT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 { | ||
|
||
} | ||
@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")); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+255 Bytes
(110%)
integration-tests/vertx-http/src/test/resources/client-keystore.jks
Binary file not shown.
Binary file modified
BIN
-359 Bytes
(72%)
integration-tests/vertx-http/src/test/resources/client-truststore.jks
Binary file not shown.