Skip to content

Commit

Permalink
back to the beginning code with JAVA_OPT
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarranzan committed Oct 9, 2024
1 parent a2e49b1 commit 09fe70b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import io.quarkus.test.security.certificate.CertificateBuilder;
import io.vertx.core.http.HttpVersion;
import io.vertx.core.json.JsonObject;
import io.vertx.core.net.JksOptions;
import io.vertx.ext.web.client.WebClientOptions;
import io.vertx.mutiny.ext.web.client.HttpResponse;
import io.vertx.mutiny.ext.web.client.predicate.ResponsePredicate;
Expand All @@ -47,7 +48,7 @@
public abstract class BaseHttpAdvancedIT {

private static final String ROOT_PATH = "/api";
private static final int TIMEOUT_SEC = 2;
private static final int TIMEOUT_SEC = 3;
private static final String PASSWORD = "password";
private static final String SSE_ERROR_MESSAGE = "java.lang.ClassNotFoundException: Provider for jakarta.ws.rs.sse.SseEventSource.Builder cannot be found";

Expand Down Expand Up @@ -244,7 +245,7 @@ private ResponsePredicateResult isHttp2x(HttpResponse<Void> resp) {
private WebClientOptions defaultVertxHttpClientOptions() {
return new WebClientOptions().setProtocolVersion(HttpVersion.HTTP_2).setSsl(true).setVerifyHost(false)
.setUseAlpn(true)
.setTrustAll(true);
.setTrustStoreOptions(new JksOptions().setPassword(PASSWORD).setPath(defaultTruststore()));
}

private String defaultTruststore() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
public class HttpAdvancedIT extends BaseHttpAdvancedIT {

@KeycloakContainer(command = { "start-dev", "--import-realm", "--hostname-strict=false" })
static KeycloakService keycloak = new KeycloakService(DEFAULT_REALM_FILE, DEFAULT_REALM, DEFAULT_REALM_BASE_PATH);
static KeycloakService keycloak = new KeycloakService(DEFAULT_REALM_FILE, DEFAULT_REALM, DEFAULT_REALM_BASE_PATH)
.withProperty("JAVA_OPTS", "-Xms512m -Xmx1g");

@QuarkusApplication(ssl = true, certificates = @Certificate(configureKeystore = true, configureHttpServer = true, useTlsRegistry = false))
static RestService app = new RestService().withProperty("quarkus.oidc.auth-server-url", keycloak::getRealmUrl);
Expand Down

0 comments on commit 09fe70b

Please sign in to comment.