Skip to content

Commit

Permalink
Use quarkus.http.ssl-port instead of quarkus.https.port
Browse files Browse the repository at this point in the history
Also change the port from which the secure connection is established from `quarkus.https.test-port` to `quarkus.http.test-ssl-port`

- Fixes #20228
  • Loading branch information
gastaldi committed Jan 27, 2023
1 parent 24bae58 commit 3b631a5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1348,8 +1348,8 @@ public void stop(Promise<Void> stopFuture) {

}
if (clearHttpsProperty) {
String portPropertyName = launchMode == LaunchMode.TEST ? "quarkus.https.test-port"
: "quarkus.https.port";
String portPropertyName = launchMode == LaunchMode.TEST ? "quarkus.http.test-ssl-port"
: "quarkus.http.ssl-port";
System.clearProperty(portPropertyName);
if (launchMode.isDevOrTest()) {
System.clearProperty(propertyWithProfilePrefix(portPropertyName));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public static void setURL(boolean useSecureConnection, Integer port, String addi
try {
oldPort = (Integer) portField.get(null);
if (port == null) {
port = useSecureConnection ? getPortFromConfig(DEFAULT_HTTPS_PORT, "quarkus.https.test-port")
port = useSecureConnection ? getPortFromConfig(DEFAULT_HTTPS_PORT, "quarkus.http.test-ssl-port")
: getPortFromConfig(DEFAULT_HTTP_PORT, "quarkus.lambda.mock-event-server.test-port",
"quarkus.http.test-port");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ private void setupRestAssured() {
.map(Integer::parseInt)
.orElse(DEFAULT_HTTP_PORT_INT);

// If http port is 0, then we need to set the port to null in order to use the `quarkus.https.test-port` property
// If http port is 0, then we need to set the port to null in order to use the `quarkus.http.test-ssl-port` property
// which is done in `RestAssuredURLManager.setURL`.
if (httpPort == 0) {
httpPort = null;
Expand Down

0 comments on commit 3b631a5

Please sign in to comment.