From c0de43d51fc9a8d830151305d93b3a5544c10df2 Mon Sep 17 00:00:00 2001 From: Tomas Kyjovsky Date: Fri, 19 Feb 2016 17:31:11 +0100 Subject: [PATCH] KEYCLOAK-1678 added cluster config to the EAP7 test server module --- .../servers/eap7/pom.xml | 170 +++++++++++++----- .../src/main/xslt/datasource-jdbc-url.xsl | 36 ++++ .../eap7/src/main/xslt/ispn-cache-owners.xsl | 40 +++++ 3 files changed, 197 insertions(+), 49 deletions(-) create mode 100644 testsuite/integration-arquillian/servers/eap7/src/main/xslt/datasource-jdbc-url.xsl create mode 100644 testsuite/integration-arquillian/servers/eap7/src/main/xslt/ispn-cache-owners.xsl diff --git a/testsuite/integration-arquillian/servers/eap7/pom.xml b/testsuite/integration-arquillian/servers/eap7/pom.xml index 47bec1b991..1b4393994c 100644 --- a/testsuite/integration-arquillian/servers/eap7/pom.xml +++ b/testsuite/integration-arquillian/servers/eap7/pom.xml @@ -1,20 +1,20 @@ +~ Copyright 2016 Red Hat, Inc. and/or its affiliates +~ and other contributors as indicated by the @author tags. +~ +~ Licensed under the Apache License, Version 2.0 (the "License"); +~ you may not use this file except in compliance with the License. +~ You may obtain a copy of the License at +~ +~ http://www.apache.org/licenses/LICENSE-2.0 +~ +~ Unless required by applicable law or agreed to in writing, software +~ distributed under the License is distributed on an "AS IS" BASIS, +~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +~ See the License for the specific language governing permissions and +~ limitations under the License. +--> @@ -117,6 +117,68 @@ + + ssl + + + auth.server.ssl.required + + + + + + org.codehaus.mojo + xml-maven-plugin + + + configure-adapter-subsystem-security + process-resources + + transform + + + + + ${keycloak.server.home}/standalone/configuration + + standalone.xml + + src/main/xslt/security.xsl + ${keycloak.server.home}/standalone/configuration + + + + + + + + maven-resources-plugin + 2.7 + + + copy-keystore + process-resources + + copy-resources + + + ${keycloak.server.home}/standalone/configuration + + + src/main/keystore + + keycloak.jks + keycloak.truststore + + + + + + + + + + jpa @@ -255,13 +317,14 @@ + - ssl - - - auth.server.ssl.required - - + auth-server-eap7-cluster + + 1 + 1 + 1 + @@ -269,53 +332,62 @@ xml-maven-plugin - configure-adapter-subsystem-security + configure-wildfly-datasource process-resources transform + ${keycloak.server.home}/standalone/configuration - standalone.xml + standalone-ha.xml - src/main/xslt/security.xsl + src/main/xslt/datasource-jdbc-url.xsl ${keycloak.server.home}/standalone/configuration + + + pool.name + KeycloakDS + + + jdbc.url + jdbc:h2:tcp://${jboss.bind.address:localhost}:9092/mem:keycloak;DB_CLOSE_DELAY=-1 + + + + + ${keycloak.server.home}/standalone/configuration + + standalone-ha.xml + + src/main/xslt/ispn-cache-owners.xsl + ${keycloak.server.home}/standalone/configuration + + + sessionCacheOwners + ${session.cache.owners} + + + offlineSessionCacheOwners + ${offline.session.cache.owners} + + + loginFailureCacheOwners + ${login.failure.cache.owners} + + - - maven-resources-plugin - 2.7 - - - copy-keystore - process-resources - - copy-resources - - - ${keycloak.server.home}/standalone/configuration - - - src/main/keystore - - keycloak.jks - keycloak.truststore - - - - - - - + diff --git a/testsuite/integration-arquillian/servers/eap7/src/main/xslt/datasource-jdbc-url.xsl b/testsuite/integration-arquillian/servers/eap7/src/main/xslt/datasource-jdbc-url.xsl new file mode 100644 index 0000000000..589ee4cc1d --- /dev/null +++ b/testsuite/integration-arquillian/servers/eap7/src/main/xslt/datasource-jdbc-url.xsl @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/testsuite/integration-arquillian/servers/eap7/src/main/xslt/ispn-cache-owners.xsl b/testsuite/integration-arquillian/servers/eap7/src/main/xslt/ispn-cache-owners.xsl new file mode 100644 index 0000000000..7237d89868 --- /dev/null +++ b/testsuite/integration-arquillian/servers/eap7/src/main/xslt/ispn-cache-owners.xsl @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file