diff --git a/pom.xml b/pom.xml index 968a2361..162e672e 100644 --- a/pom.xml +++ b/pom.xml @@ -1087,6 +1087,7 @@ 256 _app=stomp-test,version=1.8 stomp-test + DOWN jgroups-kubeping-service-account diff --git a/src/test/java/x1/arquillian/WildflyContainer.java b/src/test/java/x1/arquillian/WildflyContainer.java index 008f8d20..f533676f 100644 --- a/src/test/java/x1/arquillian/WildflyContainer.java +++ b/src/test/java/x1/arquillian/WildflyContainer.java @@ -25,6 +25,8 @@ public class WildflyContainer extends GenericContainer { private static final int MGMT_PORT = 9990; private static final int DEBUG_PORT = 8787; + private static final String JAVA_OPTS = "-server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -XX:+UseG1GC -XX:+UseStringDeduplication -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true"; + public WildflyContainer() { this("registry.x1/j7beck/x1-wildfly-profile:32.0.0.Final"); } @@ -75,13 +77,16 @@ public WildflyContainer withConfigurationDirectory(String directory) { } public WildflyContainer withRemoteDebug() { + return withRemoteDebug(JAVA_OPTS); + } + + public WildflyContainer withRemoteDebug(String javaOpts) { if (Boolean.getBoolean("arquillian.remote.debug")) { var suspend = Boolean.getBoolean("arquillian.remote.debug.suspend") ? "y" : "n"; LOGGER.info("Enable remote debugging on port {} with suspend={}", DEBUG_PORT, suspend); addFixedExposedPort(DEBUG_PORT, DEBUG_PORT); withEnv("JAVA_OPTS", - "-server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -XX:+UseG1GC -XX:+UseStringDeduplication -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -agentlib:jdwp=transport=dt_socket,address=*:" - + DEBUG_PORT + ",server=y,suspend=" + suspend); + javaOpts + " -agentlib:jdwp=transport=dt_socket,address=*:" + DEBUG_PORT + ",server=y,suspend=" + suspend); } return this; } diff --git a/src/test/resources/wildfly-testcontainers.properties b/src/test/resources/wildfly-testcontainers.properties index d57bc465..1b531101 100644 --- a/src/test/resources/wildfly-testcontainers.properties +++ b/src/test/resources/wildfly-testcontainers.properties @@ -5,3 +5,4 @@ DB_PASSWORD=stocks ETCD_SERVER=etcd ETCD_PORT=2379 X1_SERVICE_REGISTRY_STAGE=docker +#MP_HEALTH_EMPTY_LIVENESS_CHECKS_STATUS=UP