From 4c33704c564b48446c138b98300384b06e144123 Mon Sep 17 00:00:00 2001 From: vramik Date: Sun, 18 Oct 2015 16:01:26 +0200 Subject: [PATCH] add support for migration kc1.5.1 --- .../integration-arquillian/servers/pom.xml | 6 + .../servers/wildfly_kc15/assembly.xml | 29 +++ .../servers/wildfly_kc15/pom.xml | 199 ++++++++++++++++++ .../src/main/xslt/add-dialect-logger.xsl | 28 +++ .../wildfly_kc15/src/main/xslt/datasource.xsl | 94 +++++++++ .../wildfly_kc15/src/main/xslt/module.xsl | 33 +++ .../base/src/test/resources/arquillian.xml | 11 + .../integration-arquillian/tests/pom.xml | 50 +++++ 8 files changed, 450 insertions(+) create mode 100644 testsuite/integration-arquillian/servers/wildfly_kc15/assembly.xml create mode 100644 testsuite/integration-arquillian/servers/wildfly_kc15/pom.xml create mode 100644 testsuite/integration-arquillian/servers/wildfly_kc15/src/main/xslt/add-dialect-logger.xsl create mode 100644 testsuite/integration-arquillian/servers/wildfly_kc15/src/main/xslt/datasource.xsl create mode 100644 testsuite/integration-arquillian/servers/wildfly_kc15/src/main/xslt/module.xsl diff --git a/testsuite/integration-arquillian/servers/pom.xml b/testsuite/integration-arquillian/servers/pom.xml index 254e40e4be..250469bcad 100644 --- a/testsuite/integration-arquillian/servers/pom.xml +++ b/testsuite/integration-arquillian/servers/pom.xml @@ -26,6 +26,12 @@ eap6 + + migration-kc15 + + wildfly_kc15 + + migration-kc14 diff --git a/testsuite/integration-arquillian/servers/wildfly_kc15/assembly.xml b/testsuite/integration-arquillian/servers/wildfly_kc15/assembly.xml new file mode 100644 index 0000000000..0eb108c0c8 --- /dev/null +++ b/testsuite/integration-arquillian/servers/wildfly_kc15/assembly.xml @@ -0,0 +1,29 @@ + + + auth-server-wildfly-kc14 + + + zip + + + false + + + + ${keycloak.server.home} + keycloak-1.5.1.Final + + **/*.sh + + + + ${keycloak.server.home} + keycloak-1.5.1.Final + + **/*.sh + + 0755 + + + + diff --git a/testsuite/integration-arquillian/servers/wildfly_kc15/pom.xml b/testsuite/integration-arquillian/servers/wildfly_kc15/pom.xml new file mode 100644 index 0000000000..ac8129405b --- /dev/null +++ b/testsuite/integration-arquillian/servers/wildfly_kc15/pom.xml @@ -0,0 +1,199 @@ + + + + org.keycloak.testsuite + integration-arquillian-servers + 1.6.0.Final-SNAPSHOT + + 4.0.0 + + integration-arquillian-server-wildfly-kc15 + pom + Keycloak 1.5.1.Final on Wildfly + + + ${project.build.directory}/unpacked/keycloak-1.5.1.Final + ${keycloak.server.home}/modules/system/layers/base/com/${jdbc.mvn.artifactId}/main + + + + + + org.apache.maven.plugins + maven-deploy-plugin + + true + + + + org.apache.maven.plugins + maven-enforcer-plugin + 1.4 + + + enforce-properties + + enforce + + + + + jdbc.mvn.groupId + + + jdbc.mvn.artifactId + + + jdbc.mvn.version + + + keycloak.connectionsJpa.url + + + keycloak.connectionsJpa.user + + + keycloak.connectionsJpa.password + + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + unpack-server + generate-resources + + unpack + + + + + org.keycloak + keycloak-server-dist + 1.5.1.Final + zip + ${project.build.directory}/unpacked + + + + + + jdbc-driver + process-resources + + copy + + + + + ${jdbc.mvn.groupId} + ${jdbc.mvn.artifactId} + ${jdbc.mvn.version} + jar + + + ${jdbc.mvn.driver.deployment.dir} + true + + + + + + org.codehaus.mojo + xml-maven-plugin + + + configure-wildfly-datasource + process-resources + + transform + + + + + + ${keycloak.server.home}/modules/system/layers/base/com/h2database/h2/main + src/main/xslt/module.xsl + + module.xml + + ${jdbc.mvn.driver.deployment.dir} + + + database + ${jdbc.mvn.artifactId} + + + version + ${jdbc.mvn.version} + + + + + + ${keycloak.server.home}/standalone/configuration + src/main/xslt/datasource.xsl + + standalone.xml + + ${keycloak.server.home}/standalone/configuration + + + jdbc.url + ${keycloak.connectionsJpa.url} + + + driver + ${jdbc.mvn.artifactId} + + + username + ${keycloak.connectionsJpa.user} + + + password + ${keycloak.connectionsJpa.password} + + + + + + ${keycloak.server.home}/standalone/configuration + src/main/xslt/add-dialect-logger.xsl + + standalone.xml + + ${keycloak.server.home}/standalone/configuration + + + + + + + + maven-assembly-plugin + + + create-zip + package + + single + + + + assembly.xml + + false + + + + + + + diff --git a/testsuite/integration-arquillian/servers/wildfly_kc15/src/main/xslt/add-dialect-logger.xsl b/testsuite/integration-arquillian/servers/wildfly_kc15/src/main/xslt/add-dialect-logger.xsl new file mode 100644 index 0000000000..b5dc8c4e02 --- /dev/null +++ b/testsuite/integration-arquillian/servers/wildfly_kc15/src/main/xslt/add-dialect-logger.xsl @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/testsuite/integration-arquillian/servers/wildfly_kc15/src/main/xslt/datasource.xsl b/testsuite/integration-arquillian/servers/wildfly_kc15/src/main/xslt/datasource.xsl new file mode 100644 index 0000000000..c06899fd74 --- /dev/null +++ b/testsuite/integration-arquillian/servers/wildfly_kc15/src/main/xslt/datasource.xsl @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/testsuite/integration-arquillian/servers/wildfly_kc15/src/main/xslt/module.xsl b/testsuite/integration-arquillian/servers/wildfly_kc15/src/main/xslt/module.xsl new file mode 100644 index 0000000000..88ac56b86c --- /dev/null +++ b/testsuite/integration-arquillian/servers/wildfly_kc15/src/main/xslt/module.xsl @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file 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 7b2713e90b..1b6df1d5e1 100644 --- a/testsuite/integration-arquillian/tests/base/src/test/resources/arquillian.xml +++ b/testsuite/integration-arquillian/tests/base/src/test/resources/arquillian.xml @@ -21,6 +21,17 @@ + + + ${migration.kc15} + org.jboss.as.arquillian.container.managed.ManagedDeployableContainer + ${keycloak-1.5.1.Final.home} + -Djboss.socket.binding.port-offset=${auth.server.port.offset} -Xms64m -Xmx512m -XX:MaxPermSize=256m + ${auth.server.management.port} + ${startup.timeout.sec} + + + ${migration.kc14} diff --git a/testsuite/integration-arquillian/tests/pom.xml b/testsuite/integration-arquillian/tests/pom.xml index 58d32e4ba2..c1863bc5e0 100644 --- a/testsuite/integration-arquillian/tests/pom.xml +++ b/testsuite/integration-arquillian/tests/pom.xml @@ -451,6 +451,56 @@ + + migration-kc15 + + ${containers.home}/keycloak-1.5.1.Final + + + + + + org.apache.maven.plugins + maven-dependency-plugin + 2.10 + + + unpack-previous + generate-test-resources + + unpack + + + + + org.keycloak.testsuite + integration-arquillian-server-wildfly-kc15 + ${project.version} + zip + + + ${containers.home} + true + + + + + + org.apache.maven.plugins + maven-surefire-plugin + + + true + true + ${keycloak-1.5.1.Final.home} + + + + + + + + migration-kc14