2017-05-29 07:02:57 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!--
|
|
|
|
~ 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.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
2020-08-20 14:51:01 +00:00
|
|
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
2017-05-29 07:02:57 +00:00
|
|
|
<parent>
|
|
|
|
<groupId>org.keycloak.testsuite</groupId>
|
|
|
|
<artifactId>integration-arquillian-servers-cache-server</artifactId>
|
2021-07-30 12:55:12 +00:00
|
|
|
<version>16.0.0-SNAPSHOT</version>
|
2017-05-29 07:02:57 +00:00
|
|
|
</parent>
|
|
|
|
|
|
|
|
<packaging>pom</packaging>
|
2020-08-20 14:51:01 +00:00
|
|
|
<artifactId>integration-arquillian-servers-cache-server-infinispan</artifactId>
|
|
|
|
<name>Keycloak Arquillian Integration TestSuite - Cache Server - Infinispan</name>
|
2017-05-29 07:02:57 +00:00
|
|
|
|
|
|
|
<properties>
|
|
|
|
<common.resources>${project.parent.basedir}/common</common.resources>
|
|
|
|
<assembly.xml>${project.parent.basedir}/assembly.xml</assembly.xml>
|
2020-08-20 14:51:01 +00:00
|
|
|
|
|
|
|
<cache.server.infinispan.home>${containers.home}/${cache.server.infinispan.unpacked.folder.name}</cache.server.infinispan.home>
|
|
|
|
<cache.server.infinispan.jdg-transactions-enabled>true</cache.server.infinispan.jdg-transactions-enabled>
|
|
|
|
<cache.server.infinispan.config.dir>${cache.server.infinispan.home}/server/conf</cache.server.infinispan.config.dir>
|
|
|
|
|
|
|
|
<cache.server.cache-auth-xsl>cache-authentication-disabled.xsl</cache.server.cache-auth-xsl>
|
2017-05-29 07:02:57 +00:00
|
|
|
</properties>
|
|
|
|
|
|
|
|
<profiles>
|
2020-08-20 14:51:01 +00:00
|
|
|
|
|
|
|
<profile>
|
|
|
|
<id>cache-auth</id>
|
|
|
|
<properties>
|
|
|
|
<cache.server.cache-auth-xsl>cache-authentication-enabled.xsl</cache.server.cache-auth-xsl>
|
|
|
|
</properties>
|
|
|
|
</profile>
|
2018-09-24 08:49:47 +00:00
|
|
|
|
2017-05-29 07:02:57 +00:00
|
|
|
<profile>
|
2020-08-20 14:51:01 +00:00
|
|
|
<id>cache-server-infinispan-submodules</id>
|
2017-05-29 07:02:57 +00:00
|
|
|
<activation>
|
|
|
|
<file>
|
|
|
|
<exists>src</exists>
|
|
|
|
</file>
|
|
|
|
</activation>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
2018-09-24 08:49:47 +00:00
|
|
|
|
2017-05-29 07:02:57 +00:00
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<goals>
|
|
|
|
<goal>enforce</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<rules>
|
|
|
|
<requireProperty>
|
2020-08-20 14:51:01 +00:00
|
|
|
<property>cache.server.infinispan.groupId</property>
|
|
|
|
<property>cache.server.infinispan.artifactId</property>
|
|
|
|
<property>cache.server.infinispan.version</property>
|
|
|
|
<property>cache.server.infinispan.unpacked.folder.name</property>
|
2017-05-29 07:02:57 +00:00
|
|
|
</requireProperty>
|
|
|
|
</rules>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2018-09-24 08:49:47 +00:00
|
|
|
|
2017-05-29 07:02:57 +00:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>xml-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2017-06-19 22:29:19 +00:00
|
|
|
<id>configure-keycloak-caches</id>
|
2017-05-29 07:02:57 +00:00
|
|
|
<phase>process-test-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>transform</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<transformationSets>
|
2017-10-19 06:53:04 +00:00
|
|
|
|
|
|
|
<!-- Configure dc-0 site in file clustered-1.xml -->
|
2017-05-29 07:02:57 +00:00
|
|
|
<transformationSet>
|
2020-08-20 14:51:01 +00:00
|
|
|
<dir>${cache.server.infinispan.config.dir}</dir>
|
2017-05-29 07:02:57 +00:00
|
|
|
<includes>
|
2020-08-20 14:51:01 +00:00
|
|
|
<include>infinispan-xsite.xml</include>
|
2017-05-29 07:02:57 +00:00
|
|
|
</includes>
|
2017-06-19 22:29:19 +00:00
|
|
|
<stylesheet>${common.resources}/add-keycloak-caches.xsl</stylesheet>
|
2017-10-19 06:53:04 +00:00
|
|
|
<parameters>
|
|
|
|
<parameter>
|
|
|
|
<name>local.site</name>
|
|
|
|
<value>dc-0</value>
|
|
|
|
</parameter>
|
|
|
|
<parameter>
|
|
|
|
<name>remote.site</name>
|
|
|
|
<value>dc-1</value>
|
|
|
|
</parameter>
|
2018-08-09 13:01:54 +00:00
|
|
|
<parameter>
|
|
|
|
<name>transactions.enabled</name>
|
2020-08-20 14:51:01 +00:00
|
|
|
<value>${cache.server.infinispan.jdg-transactions-enabled}</value>
|
2018-08-09 13:01:54 +00:00
|
|
|
</parameter>
|
2017-10-19 06:53:04 +00:00
|
|
|
</parameters>
|
2020-08-20 14:51:01 +00:00
|
|
|
<outputDir>${cache.server.infinispan.config.dir}</outputDir>
|
2017-10-19 06:53:04 +00:00
|
|
|
<fileMappers>
|
|
|
|
<fileMapper implementation="org.codehaus.plexus.components.io.filemappers.RegExpFileMapper">
|
|
|
|
<pattern>^(.*)\.xml$</pattern>
|
|
|
|
<replacement>$1-1.xml</replacement>
|
|
|
|
</fileMapper>
|
|
|
|
</fileMappers>
|
2017-05-29 07:02:57 +00:00
|
|
|
</transformationSet>
|
2017-10-19 06:53:04 +00:00
|
|
|
|
|
|
|
<!-- Configure dc-1 site in file clustered-2.xml -->
|
|
|
|
<transformationSet>
|
2020-08-20 14:51:01 +00:00
|
|
|
<dir>${cache.server.infinispan.config.dir}</dir>
|
2017-10-19 06:53:04 +00:00
|
|
|
<includes>
|
2020-08-20 14:51:01 +00:00
|
|
|
<include>infinispan-xsite.xml</include>
|
2017-10-19 06:53:04 +00:00
|
|
|
</includes>
|
|
|
|
<stylesheet>${common.resources}/add-keycloak-caches.xsl</stylesheet>
|
|
|
|
<parameters>
|
|
|
|
<parameter>
|
|
|
|
<name>local.site</name>
|
|
|
|
<value>dc-1</value>
|
|
|
|
</parameter>
|
|
|
|
<parameter>
|
|
|
|
<name>remote.site</name>
|
|
|
|
<value>dc-0</value>
|
|
|
|
</parameter>
|
2018-08-09 13:01:54 +00:00
|
|
|
<parameter>
|
|
|
|
<name>transactions.enabled</name>
|
2020-08-20 14:51:01 +00:00
|
|
|
<value>${cache.server.infinispan.jdg-transactions-enabled}</value>
|
2018-08-09 13:01:54 +00:00
|
|
|
</parameter>
|
2017-10-19 06:53:04 +00:00
|
|
|
</parameters>
|
2020-08-20 14:51:01 +00:00
|
|
|
<outputDir>${cache.server.infinispan.config.dir}</outputDir>
|
2017-10-19 06:53:04 +00:00
|
|
|
<fileMappers>
|
|
|
|
<fileMapper implementation="org.codehaus.plexus.components.io.filemappers.RegExpFileMapper">
|
|
|
|
<pattern>^(.*)\.xml$</pattern>
|
|
|
|
<replacement>$1-2.xml</replacement>
|
|
|
|
</fileMapper>
|
|
|
|
</fileMappers>
|
|
|
|
</transformationSet>
|
|
|
|
|
2017-05-29 07:02:57 +00:00
|
|
|
</transformationSets>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2017-10-19 06:53:04 +00:00
|
|
|
|
2018-03-08 10:19:30 +00:00
|
|
|
<execution>
|
|
|
|
<id>configure-keycloak-authorization</id>
|
|
|
|
<phase>process-test-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>transform</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<transformationSets>
|
|
|
|
<!-- Configure authorization in files clustered-__dc__.xml -->
|
|
|
|
<transformationSet>
|
2020-08-20 14:51:01 +00:00
|
|
|
<dir>${cache.server.infinispan.config.dir}</dir>
|
2017-05-29 07:02:57 +00:00
|
|
|
<includes>
|
2020-08-20 14:51:01 +00:00
|
|
|
<include>infinispan-xsite-1.xml</include>
|
|
|
|
<include>infinispan-xsite-2.xml</include>
|
2017-05-29 07:02:57 +00:00
|
|
|
</includes>
|
2020-08-20 14:51:01 +00:00
|
|
|
<stylesheet>${common.resources}/${cache.server.cache-auth-xsl}</stylesheet>
|
2017-05-29 07:02:57 +00:00
|
|
|
<parameters>
|
|
|
|
<parameter>
|
2020-08-20 14:51:01 +00:00
|
|
|
<name>hotrod.sasl.mechanism</name>
|
|
|
|
<value>${hotrod.sasl.mechanism}</value>
|
2017-05-29 07:02:57 +00:00
|
|
|
</parameter>
|
|
|
|
</parameters>
|
2020-08-20 14:51:01 +00:00
|
|
|
<outputDir>${cache.server.infinispan.config.dir}</outputDir>
|
2017-05-29 07:02:57 +00:00
|
|
|
</transformationSet>
|
|
|
|
</transformationSets>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2020-08-20 14:51:01 +00:00
|
|
|
|
2017-05-29 07:02:57 +00:00
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
2020-08-20 14:51:01 +00:00
|
|
|
<id>copy-server-keystore</id>
|
|
|
|
<phase>process-test-resources</phase>
|
2017-05-29 07:02:57 +00:00
|
|
|
<goals>
|
|
|
|
<goal>copy-resources</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2020-08-20 14:51:01 +00:00
|
|
|
<outputDirectory>${cache.server.infinispan.config.dir}</outputDirectory>
|
2017-05-29 07:02:57 +00:00
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>${common.resources}</directory>
|
|
|
|
<includes>
|
2020-08-20 14:51:01 +00:00
|
|
|
<include>server.jks</include>
|
2017-05-29 07:02:57 +00:00
|
|
|
</includes>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
<overwrite>true</overwrite>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
2020-08-20 14:51:01 +00:00
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
<executions>
|
2017-06-19 22:29:19 +00:00
|
|
|
<execution>
|
2020-08-20 14:51:01 +00:00
|
|
|
<id>remove-empty-xmlns</id>
|
|
|
|
<phase>process-test-resources</phase>
|
2017-06-19 22:29:19 +00:00
|
|
|
<goals>
|
2020-08-20 14:51:01 +00:00
|
|
|
<goal>run</goal>
|
2017-06-19 22:29:19 +00:00
|
|
|
</goals>
|
|
|
|
<configuration>
|
2020-08-20 14:51:01 +00:00
|
|
|
<target>
|
|
|
|
<replace file="${cache.server.infinispan.config.dir}/infinispan-xsite-1.xml" token="xmlns=""" value=""/>
|
|
|
|
<replace file="${cache.server.infinispan.config.dir}/infinispan-xsite-2.xml" token="xmlns=""" value=""/>
|
|
|
|
</target>
|
2017-06-19 22:29:19 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
2017-05-29 07:02:57 +00:00
|
|
|
</executions>
|
|
|
|
</plugin>
|
2020-08-20 14:51:01 +00:00
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<version>3.0.0</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>create-infinispan-user</id>
|
|
|
|
<phase>process-test-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>exec</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<executable>${cache.server.infinispan.home}/bin/cli.sh</executable>
|
|
|
|
<workingDirectory>${cache.server.infinispan.home}/bin</workingDirectory>
|
|
|
|
<arguments>
|
|
|
|
<argument>user</argument>
|
|
|
|
<argument>create</argument>
|
|
|
|
<argument>myuser</argument>
|
|
|
|
<argument>-p</argument>
|
|
|
|
<argument>"qwer1234!"</argument>
|
|
|
|
</arguments>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
2017-05-29 07:02:57 +00:00
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>create-zip</id>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>single</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<descriptors>
|
|
|
|
<descriptor>${assembly.xml}</descriptor>
|
|
|
|
</descriptors>
|
|
|
|
<appendAssemblyId>false</appendAssemblyId>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<profile>
|
|
|
|
<id>cache-server-infinispan</id>
|
|
|
|
<modules>
|
|
|
|
<module>infinispan</module>
|
|
|
|
</modules>
|
|
|
|
</profile>
|
2017-06-15 09:39:38 +00:00
|
|
|
<profile>
|
2020-08-20 14:51:01 +00:00
|
|
|
<id>cache-server-datagrid</id>
|
2017-06-15 09:39:38 +00:00
|
|
|
<modules>
|
2020-08-20 14:51:01 +00:00
|
|
|
<module>datagrid</module>
|
2017-06-15 09:39:38 +00:00
|
|
|
</modules>
|
|
|
|
</profile>
|
2020-08-20 14:51:01 +00:00
|
|
|
|
2017-05-29 07:02:57 +00:00
|
|
|
</profiles>
|
|
|
|
|
|
|
|
</project>
|