diff --git a/testsuite/integration-arquillian/tests/adapters/as7/pom.xml b/testsuite/integration-arquillian/tests/adapters/as7/pom.xml index 313c154429..15b575cd80 100644 --- a/testsuite/integration-arquillian/tests/adapters/as7/pom.xml +++ b/testsuite/integration-arquillian/tests/adapters/as7/pom.xml @@ -25,14 +25,13 @@ zip - org.keycloak - keycloak-as7-adapter-dist - zip + org.wildfly + wildfly-arquillian-container-managed - org.jboss.as - jboss-as-arquillian-container-managed - 7.2.0.Final + org.keycloak + keycloak-eap6-adapter-dist + zip @@ -67,18 +66,20 @@ org.keycloak keycloak-as7-adapter-dist + ${project.version} zip ${adapter.libs.as7} - true + org.apache.maven.plugins maven-surefire-plugin + 2.18.1 true @@ -90,7 +91,6 @@ - adapter-libs-provided @@ -133,5 +133,4 @@ - diff --git a/testsuite/integration-arquillian/tests/adapters/as7/src/main/xslt/arquillian.xsl b/testsuite/integration-arquillian/tests/adapters/as7/src/main/xslt/arquillian.xsl index 8970850487..9ba1e9403f 100644 --- a/testsuite/integration-arquillian/tests/adapters/as7/src/main/xslt/arquillian.xsl +++ b/testsuite/integration-arquillian/tests/adapters/as7/src/main/xslt/arquillian.xsl @@ -18,6 +18,7 @@ ${app.server.as7.home} -Djboss.socket.binding.port-offset=${app.server.port.offset} -Xms64m -Xmx512m -XX:MaxPermSize=256m ${adapter.test.props} localhost + remote ${app.server.management.port.jmx} diff --git a/testsuite/integration-arquillian/tests/adapters/as7/src/test/java/org/keycloak/testsuite/adapter/servlet/AS7DemoServletsAdapterTest.java b/testsuite/integration-arquillian/tests/adapters/as7/src/test/java/org/keycloak/testsuite/adapter/servlet/AS7DemoServletsAdapterTest.java index f0258b23d0..1a4a68c30c 100644 --- a/testsuite/integration-arquillian/tests/adapters/as7/src/test/java/org/keycloak/testsuite/adapter/servlet/AS7DemoServletsAdapterTest.java +++ b/testsuite/integration-arquillian/tests/adapters/as7/src/test/java/org/keycloak/testsuite/adapter/servlet/AS7DemoServletsAdapterTest.java @@ -1,5 +1,6 @@ package org.keycloak.testsuite.adapter.servlet; +import org.keycloak.testsuite.arquillian.annotation.AdapterLibsLocationProperty; import org.keycloak.testsuite.arquillian.annotation.AppServerContainer; /** @@ -7,6 +8,7 @@ import org.keycloak.testsuite.arquillian.annotation.AppServerContainer; * @author tkyjovsk */ @AppServerContainer("app-server-as7") +@AdapterLibsLocationProperty("adapter.libs.as7") public class AS7DemoServletsAdapterTest extends AbstractDemoServletsAdapterTest { } diff --git a/testsuite/integration-arquillian/tests/adapters/as7/src/test/java/org/keycloak/testsuite/adapter/servlet/AS7SessionServletAdapterTest.java b/testsuite/integration-arquillian/tests/adapters/as7/src/test/java/org/keycloak/testsuite/adapter/servlet/AS7SessionServletAdapterTest.java index 9362ecd02d..4b88033f35 100644 --- a/testsuite/integration-arquillian/tests/adapters/as7/src/test/java/org/keycloak/testsuite/adapter/servlet/AS7SessionServletAdapterTest.java +++ b/testsuite/integration-arquillian/tests/adapters/as7/src/test/java/org/keycloak/testsuite/adapter/servlet/AS7SessionServletAdapterTest.java @@ -1,5 +1,6 @@ package org.keycloak.testsuite.adapter.servlet; +import org.keycloak.testsuite.arquillian.annotation.AdapterLibsLocationProperty; import org.keycloak.testsuite.arquillian.annotation.AppServerContainer; /** @@ -7,6 +8,7 @@ import org.keycloak.testsuite.arquillian.annotation.AppServerContainer; * @author tkyjovsk */ @AppServerContainer("app-server-as7") +@AdapterLibsLocationProperty("adapter.libs.as7") public class AS7SessionServletAdapterTest extends AbstractSessionServletAdapterTest { } diff --git a/testsuite/integration-arquillian/tests/adapters/eap6/pom.xml b/testsuite/integration-arquillian/tests/adapters/eap6/pom.xml new file mode 100644 index 0000000000..433ca63ae7 --- /dev/null +++ b/testsuite/integration-arquillian/tests/adapters/eap6/pom.xml @@ -0,0 +1,135 @@ + + + + org.keycloak.testsuite + integration-arquillian-tests-adapters + 1.7.0.Final-SNAPSHOT + + 4.0.0 + + integration-arquillian-adapters-eap6 + Adapter Tests on EAP 6 + + + ${containers.home}/jboss-eap-6.4 + ${containers.home}/keycloak-eap6-adapter-dist + + + + + org.jboss.as + jboss-as-dist + ${jboss.version} + zip + + + org.wildfly + wildfly-arquillian-container-managed + + + org.keycloak + keycloak-eap6-adapter-dist + zip + + + + + + + org.apache.maven.plugins + maven-deploy-plugin + + true + + + + org.apache.maven.plugins + maven-dependency-plugin + + + unpack-as7-and-adapter + generate-resources + + unpack + + + + + org.jboss.as + jboss-as-dist + ${jboss.version} + zip + ${containers.home} + + + org.keycloak + keycloak-eap6-adapter-dist + ${project.version} + zip + ${adapter.libs.eap6} + + + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.18.1 + + + true + ${app.server.eap6.home} + ${adapter.libs.eap6} + + + + + + + + + adapter-libs-provided + + + !adapter.libs.bundled + + + + ${app.server.eap6.home} + + + + + org.codehaus.mojo + xml-maven-plugin + + + configure-adapter-subsystem + process-resources + + transform + + + + + ${app.server.eap6.home}/standalone/configuration + + standalone.xml + + src/main/xslt/standalone.xsl + ${app.server.eap6.home}/standalone/configuration + + + + + + + + + + + diff --git a/testsuite/integration-arquillian/tests/adapters/eap6/src/main/xslt/arquillian.xsl b/testsuite/integration-arquillian/tests/adapters/eap6/src/main/xslt/arquillian.xsl new file mode 100644 index 0000000000..fbfd50db20 --- /dev/null +++ b/testsuite/integration-arquillian/tests/adapters/eap6/src/main/xslt/arquillian.xsl @@ -0,0 +1,37 @@ + + + + + + + + + + + + ${app.server.eap6} + org.jboss.as.arquillian.container.managed.ManagedDeployableContainer + ${app.server.eap6.home} + -Djboss.socket.binding.port-offset=${app.server.port.offset} -Xms64m -Xmx512m -XX:MaxPermSize=256m ${adapter.test.props} + localhost + remote + ${app.server.management.port.jmx} + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/testsuite/integration-arquillian/tests/adapters/eap6/src/main/xslt/standalone.xsl b/testsuite/integration-arquillian/tests/adapters/eap6/src/main/xslt/standalone.xsl new file mode 100644 index 0000000000..fb3612beff --- /dev/null +++ b/testsuite/integration-arquillian/tests/adapters/eap6/src/main/xslt/standalone.xsl @@ -0,0 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/testsuite/integration-arquillian/tests/adapters/eap6/src/test/java/org/keycloak/testsuite/adapter/servlet/EAP6DemoServletsAdapterTest.java b/testsuite/integration-arquillian/tests/adapters/eap6/src/test/java/org/keycloak/testsuite/adapter/servlet/EAP6DemoServletsAdapterTest.java new file mode 100644 index 0000000000..5eb363e0f0 --- /dev/null +++ b/testsuite/integration-arquillian/tests/adapters/eap6/src/test/java/org/keycloak/testsuite/adapter/servlet/EAP6DemoServletsAdapterTest.java @@ -0,0 +1,14 @@ +package org.keycloak.testsuite.adapter.servlet; + +import org.keycloak.testsuite.arquillian.annotation.AdapterLibsLocationProperty; +import org.keycloak.testsuite.arquillian.annotation.AppServerContainer; + +/** + * + * @author tkyjovsk + */ +@AppServerContainer("app-server-eap6") +@AdapterLibsLocationProperty("adapter.libs.eap6") +public class EAP6DemoServletsAdapterTest extends AbstractDemoServletsAdapterTest { + +} diff --git a/testsuite/integration-arquillian/tests/adapters/eap6/src/test/java/org/keycloak/testsuite/adapter/servlet/EAP6SessionServletAdapterTest.java b/testsuite/integration-arquillian/tests/adapters/eap6/src/test/java/org/keycloak/testsuite/adapter/servlet/EAP6SessionServletAdapterTest.java new file mode 100644 index 0000000000..c187910a0e --- /dev/null +++ b/testsuite/integration-arquillian/tests/adapters/eap6/src/test/java/org/keycloak/testsuite/adapter/servlet/EAP6SessionServletAdapterTest.java @@ -0,0 +1,14 @@ +package org.keycloak.testsuite.adapter.servlet; + +import org.keycloak.testsuite.arquillian.annotation.AdapterLibsLocationProperty; +import org.keycloak.testsuite.arquillian.annotation.AppServerContainer; + +/** + * + * @author tkyjovsk + */ +@AppServerContainer("app-server-eap6") +@AdapterLibsLocationProperty("adapter.libs.eap6") +public class EAP6SessionServletAdapterTest extends AbstractSessionServletAdapterTest { + +}