diff --git a/testsuite/integration-arquillian/HOW-TO-RUN.md b/testsuite/integration-arquillian/HOW-TO-RUN.md index 02cb7d5dda..cd818c2b3c 100644 --- a/testsuite/integration-arquillian/HOW-TO-RUN.md +++ b/testsuite/integration-arquillian/HOW-TO-RUN.md @@ -45,7 +45,23 @@ and adapter are all in the same JVM and you can debug them easily. If it is not and you will be able to attach remote debugger to the test. Unfortunately server and adapter are running in different JVMs, so this won't help to debug those. -TODO: Improve and add more info about Wildfly debugging... +### JBoss auth server debugging + +When tests are run on JBoss based container (WildFly/EAP) there is possibility to attach a debugger, by default on localhost:5005. + +The server won't wait to attach the debugger. There are some properties what can change the default behaviour. + + -Dauth.server.debug.port=$PORT + -Dauth.server.debug.suspend=y + +More info: http://javahowto.blogspot.cz/2010/09/java-agentlibjdwp-for-attaching.html + +### JBoss app server debugging + +Analogically, there is the same behaviour for JBoss based app server as for auth server. The default port is set to 5006. There are app server properties. + + -Dapp.server.debug.port=$PORT + -Dapp.server.debug.suspend=y ## Testsuite logging diff --git a/testsuite/integration-arquillian/tests/base/src/test/resources/arquillian.xml b/testsuite/integration-arquillian/tests/base/src/test/resources/arquillian.xml index aa8649e3c7..f9919d5867 100644 --- a/testsuite/integration-arquillian/tests/base/src/test/resources/arquillian.xml +++ b/testsuite/integration-arquillian/tests/base/src/test/resources/arquillian.xml @@ -74,6 +74,7 @@ ${auth.server.feature} + ${auth.server.jboss.jvm.debug.args} ${auth.server.memory.settings} -Djava.net.preferIPv4Stack=true diff --git a/testsuite/integration-arquillian/tests/other/adapters/jboss/common/xslt/arquillian.xsl b/testsuite/integration-arquillian/tests/other/adapters/jboss/common/xslt/arquillian.xsl index 30e7dba1f0..67a494adb5 100644 --- a/testsuite/integration-arquillian/tests/other/adapters/jboss/common/xslt/arquillian.xsl +++ b/testsuite/integration-arquillian/tests/other/adapters/jboss/common/xslt/arquillian.xsl @@ -39,6 +39,7 @@ ${adapter.test.props} + ${app.server.jboss.jvm.debug.args} ${app.server.memory.settings} -Djava.net.preferIPv4Stack=true diff --git a/testsuite/integration-arquillian/tests/other/adapters/pom.xml b/testsuite/integration-arquillian/tests/other/adapters/pom.xml index e90f353ae2..70533a902e 100644 --- a/testsuite/integration-arquillian/tests/other/adapters/pom.xml +++ b/testsuite/integration-arquillian/tests/other/adapters/pom.xml @@ -52,6 +52,11 @@ 60 -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m + + 5006 + n + -agentlib:jdwp=transport=dt_socket,server=y,suspend=${app.server.debug.suspend},address=${app.server.host}:${app.server.debug.port} + false 500 @@ -205,7 +210,8 @@ ${app.server.startup.timeout} ${app.server.memory.settings} - + ${app.server.jboss.jvm.debug.args} + ${app.server.reverse-proxy.port.offset} ${app.server.1.port.offset} diff --git a/testsuite/integration-arquillian/tests/pom.xml b/testsuite/integration-arquillian/tests/pom.xml index e5bba34e6c..24e67c9823 100755 --- a/testsuite/integration-arquillian/tests/pom.xml +++ b/testsuite/integration-arquillian/tests/pom.xml @@ -64,6 +64,11 @@ ${auth.server.undertow} 300 + + 5005 + n + -agentlib:jdwp=transport=dt_socket,server=y,suspend=${auth.server.debug.suspend},address=${auth.server.host}:${auth.server.debug.port} + false @@ -226,6 +231,7 @@ ${auth.server.config.property.name} ${auth.server.config.property.value} ${auth.server.adapter.impl.class} + ${auth.server.jboss.jvm.debug.args} ${auth.server.profile} ${auth.server.feature}