885 lines
42 KiB
XML
885 lines
42 KiB
XML
<?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">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
<groupId>org.keycloak.testsuite</groupId>
|
|
<artifactId>integration-arquillian</artifactId>
|
|
<version>1.9.0.Final-SNAPSHOT</version>
|
|
</parent>
|
|
|
|
<packaging>pom</packaging>
|
|
|
|
<artifactId>integration-arquillian-tests</artifactId>
|
|
|
|
<name>Tests</name>
|
|
|
|
<description></description>
|
|
|
|
<modules>
|
|
<module>base</module>
|
|
<module>other</module>
|
|
</modules>
|
|
|
|
<properties>
|
|
<containers.home>${project.build.directory}/containers</containers.home>
|
|
<examples.home>${project.build.directory}/examples</examples.home>
|
|
<jboss.server.config.dir>${project.build.directory}/undertow-configuration</jboss.server.config.dir>
|
|
|
|
<auth.server.container>auth-server-undertow</auth.server.container>
|
|
<auth.server.port.offset>100</auth.server.port.offset>
|
|
<auth.server.http.port>8180</auth.server.http.port>
|
|
<auth.server.https.port>8543</auth.server.https.port>
|
|
<auth.server.management.port>10090</auth.server.management.port>
|
|
<auth.server.management.port.jmx>10099</auth.server.management.port.jmx>
|
|
<auth.server.ssl.required>false</auth.server.ssl.required>
|
|
<apache.mod_auth_mellon.url>http://localhost:8380</apache.mod_auth_mellon.url>
|
|
<startup.timeout.sec>60</startup.timeout.sec>
|
|
|
|
<browser>phantomjs</browser>
|
|
<firefox_binary>/usr/bin/firefox</firefox_binary>
|
|
|
|
<arquillian-core.version>1.1.8.Final</arquillian-core.version>
|
|
<selenium.version>2.45.0</selenium.version>
|
|
<arquillian-drone.version>2.0.0.Alpha4</arquillian-drone.version>
|
|
<arquillian-graphene.version>2.1.0.Alpha2</arquillian-graphene.version>
|
|
<arquillian-wildfly-container.version>8.2.0.Final</arquillian-wildfly-container.version>
|
|
<version.shrinkwrap.resolvers>2.1.1</version.shrinkwrap.resolvers>
|
|
|
|
<frontend.console.output>true</frontend.console.output>
|
|
<backends.console.output>true</backends.console.output>
|
|
|
|
</properties>
|
|
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.jboss.arquillian.selenium</groupId>
|
|
<artifactId>selenium-bom</artifactId>
|
|
<version>${selenium.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jboss.arquillian</groupId>
|
|
<artifactId>arquillian-bom</artifactId>
|
|
<version>${arquillian-core.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jboss.arquillian.extension</groupId>
|
|
<artifactId>arquillian-drone-bom</artifactId>
|
|
<version>${arquillian-drone.version}</version>
|
|
<type>pom</type>
|
|
<scope>import</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.wildfly</groupId>
|
|
<artifactId>wildfly-arquillian-container-managed</artifactId>
|
|
<version>${arquillian-wildfly-container.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
|
|
<build>
|
|
<pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<systemPropertyVariables>
|
|
<browser>${browser}</browser>
|
|
<firefox_binary>${firefox_binary}</firefox_binary>
|
|
<shouldDeploy>false</shouldDeploy>
|
|
<auth.server.container>${auth.server.container}</auth.server.container>
|
|
<auth.server.undertow>true</auth.server.undertow>
|
|
<auth.server.port.offset>${auth.server.port.offset}</auth.server.port.offset>
|
|
<auth.server.http.port>${auth.server.http.port}</auth.server.http.port>
|
|
<auth.server.https.port>${auth.server.https.port}</auth.server.https.port>
|
|
<auth.server.management.port>${auth.server.management.port}</auth.server.management.port>
|
|
<auth.server.management.port.jmx>${auth.server.management.port.jmx}</auth.server.management.port.jmx>
|
|
<auth.server.ssl.required>${auth.server.ssl.required}</auth.server.ssl.required>
|
|
<startup.timeout.sec>${startup.timeout.sec}</startup.timeout.sec>
|
|
<jboss.server.config.dir>${jboss.server.config.dir}</jboss.server.config.dir>
|
|
<frontend.console.output>${frontend.console.output}</frontend.console.output>
|
|
<backends.console.output>${backend.console.output}</backends.console.output>
|
|
</systemPropertyVariables>
|
|
<properties>
|
|
<property>
|
|
<name>listener</name>
|
|
<value>org.keycloak.testsuite.util.TestEventsLogger</value>
|
|
</property>
|
|
</properties>
|
|
<failIfNoTests>false</failIfNoTests>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-resources-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>copy-admin-user-json-file</id>
|
|
<phase>process-resources</phase>
|
|
<goals>
|
|
<goal>copy-resources</goal>
|
|
</goals>
|
|
<configuration>
|
|
<outputDirectory>${jboss.server.config.dir}</outputDirectory>
|
|
<resources>
|
|
<resource>
|
|
<directory>src/test/resources</directory>
|
|
<includes>
|
|
<include>keycloak-add-user.json</include>
|
|
</includes>
|
|
<filtering>true</filtering>
|
|
</resource>
|
|
</resources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</pluginManagement>
|
|
</build>
|
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
<id>no-account</id>
|
|
<properties>
|
|
<exclude.account>**/account/**/*Test.java</exclude.account>
|
|
</properties>
|
|
</profile>
|
|
<profile>
|
|
<id>no-client</id>
|
|
<properties>
|
|
<exclude.client>**/client/**/*Test.java</exclude.client>
|
|
</properties>
|
|
</profile>
|
|
<profile>
|
|
<id>no-base</id>
|
|
<properties>
|
|
<exclude.account>**/account/**/*Test.java</exclude.account>
|
|
<exclude.client>**/client/**/*Test.java</exclude.client>
|
|
</properties>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>common-test-dependencies</id>
|
|
<activation>
|
|
<file>
|
|
<exists>src</exists>
|
|
<!-- ^ only activate this profile in submodules that have actual tests -->
|
|
</file>
|
|
</activation>
|
|
<dependencies>
|
|
<!-- TEST DEPENDENCIES -->
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jboss.arquillian.junit</groupId>
|
|
<artifactId>arquillian-junit-container</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.jboss.arquillian.graphene</groupId>
|
|
<artifactId>graphene-webdriver</artifactId>
|
|
<version>${arquillian-graphene.version}</version>
|
|
<type>pom</type>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jboss.arquillian.protocol</groupId>
|
|
<artifactId>arquillian-protocol-servlet</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jboss.arquillian.extension</groupId>
|
|
<artifactId>arquillian-phantom-driver</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jboss.arquillian.graphene</groupId>
|
|
<artifactId>arquillian-browser-screenshooter</artifactId>
|
|
<version>2.1.0.Alpha3</version><!-- TODO upgrade <arquillian-graphene.version> and use ${arquillian-graphene.version} -->
|
|
</dependency>
|
|
|
|
<!-- <dependency>
|
|
<groupId>org.arquillian.extension</groupId>
|
|
<artifactId>arquillian-recorder-reporter-impl</artifactId>
|
|
<version>1.1.0.Final</version>
|
|
</dependency>-->
|
|
|
|
<dependency>
|
|
<groupId>log4j</groupId>
|
|
<artifactId>log4j</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-api</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-log4j12</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>javax.servlet</groupId>
|
|
<artifactId>javax.servlet-api</artifactId>
|
|
<version>3.1.0</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.ant</groupId>
|
|
<artifactId>ant</artifactId>
|
|
<version>1.9.2</version>
|
|
<type>jar</type>
|
|
</dependency>
|
|
|
|
<!-- Email Test Server -->
|
|
<dependency>
|
|
<groupId>com.icegreen</groupId>
|
|
<artifactId>greenmail</artifactId>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-api</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<!-- Keycloak deps for tests -->
|
|
|
|
<dependency>
|
|
<groupId>org.keycloak</groupId>
|
|
<artifactId>keycloak-dependencies-server-all</artifactId>
|
|
<type>pom</type>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.keycloak</groupId>
|
|
<artifactId>keycloak-core</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.keycloak</groupId>
|
|
<artifactId>keycloak-admin-client</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.keycloak</groupId>
|
|
<artifactId>keycloak-client-registration-api</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.keycloak</groupId>
|
|
<artifactId>keycloak-services</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.keycloak</groupId>
|
|
<artifactId>keycloak-adapter-core</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.keycloak</groupId>
|
|
<artifactId>keycloak-adapter-spi</artifactId>
|
|
</dependency>
|
|
|
|
|
|
<!-- Keycloak Server on Undertow -->
|
|
|
|
<dependency>
|
|
<groupId>org.jboss.arquillian.container</groupId>
|
|
<artifactId>undertow-embedded</artifactId>
|
|
<version>1.0.0.Alpha1-SNAPSHOT</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.jboss.spec.javax.ws.rs</groupId>
|
|
<artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
<artifactId>async-http-servlet-3.0</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
<artifactId>resteasy-jaxrs</artifactId>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>log4j</groupId>
|
|
<artifactId>log4j</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-api</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-simple</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
<artifactId>resteasy-client</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
<artifactId>resteasy-undertow</artifactId>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
<artifactId>resteasy-multipart-provider</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
<artifactId>resteasy-jackson2-provider</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-core</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-databind</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-annotations</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.hibernate.javax.persistence</groupId>
|
|
<artifactId>hibernate-jpa-2.1-api</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.h2database</groupId>
|
|
<artifactId>h2</artifactId>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.hibernate</groupId>
|
|
<artifactId>hibernate-entitymanager</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.bouncycastle</groupId>
|
|
<artifactId>bcprov-jdk15on</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.bouncycastle</groupId>
|
|
<artifactId>bcpkix-jdk15on</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.hamcrest</groupId>
|
|
<artifactId>hamcrest-all</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.infinispan</groupId>
|
|
<artifactId>infinispan-core</artifactId>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>xml-maven-plugin</artifactId>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>auth-server-wildfly</id>
|
|
<properties>
|
|
<auth.server.container>auth-server-wildfly</auth.server.container>
|
|
<startup.timeout.sec>300</startup.timeout.sec>
|
|
<adapter.test.props/>
|
|
<keycloak.home>${containers.home}/keycloak-${project.version}</keycloak.home>
|
|
<jboss.server.config.dir>${keycloak.home}/standalone/configuration</jboss.server.config.dir>
|
|
<h2.version>1.3.173</h2.version>
|
|
</properties>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.wildfly</groupId>
|
|
<artifactId>wildfly-arquillian-container-managed</artifactId>
|
|
</dependency>
|
|
</dependencies>
|
|
<build>
|
|
<pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<systemPropertyVariables>
|
|
<auth.server.wildfly>true</auth.server.wildfly>
|
|
<auth.server.undertow>false</auth.server.undertow>
|
|
<keycloak.home>${keycloak.home}</keycloak.home>
|
|
<adapter.test.props>${adapter.test.props}</adapter.test.props>
|
|
</systemPropertyVariables>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>unpack-auth-server-wildfly</id>
|
|
<phase>generate-test-resources</phase>
|
|
<goals>
|
|
<goal>unpack</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifactItems>
|
|
<artifactItem>
|
|
<groupId>org.keycloak.testsuite</groupId>
|
|
<artifactId>integration-arquillian-server-wildfly</artifactId>
|
|
<version>${project.version}</version>
|
|
<type>zip</type>
|
|
</artifactItem>
|
|
</artifactItems>
|
|
<outputDirectory>${containers.home}</outputDirectory>
|
|
<overWriteIfNewer>true</overWriteIfNewer>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</pluginManagement>
|
|
</build>
|
|
</profile>
|
|
|
|
|
|
<profile>
|
|
<id>auth-server-wildfly-cluster</id>
|
|
<properties>
|
|
<!--disable exclusion pattern for cluster test which is enabled by default in base/pom.xml-->
|
|
<exclude.cluster>-</exclude.cluster>
|
|
|
|
<auth.server.container>auth-server-wildfly-cluster</auth.server.container>
|
|
<startup.timeout.sec>300</startup.timeout.sec>
|
|
<adapter.test.props/>
|
|
<h2.version>1.3.173</h2.version>
|
|
|
|
<keycloak.balancer.home>${containers.home}/balancer/wildfly-balancer-${project.version}</keycloak.balancer.home>
|
|
<keycloak.backend1.home>${containers.home}/node1/keycloak-${project.version}</keycloak.backend1.home>
|
|
<keycloak.backend2.home>${containers.home}/node2/keycloak-${project.version}</keycloak.backend2.home>
|
|
|
|
<keycloak.home>${keycloak.backend1.home}</keycloak.home>
|
|
<jboss.server.config.dir>${keycloak.home}/standalone/configuration</jboss.server.config.dir>
|
|
</properties>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.wildfly</groupId>
|
|
<artifactId>wildfly-arquillian-container-managed</artifactId>
|
|
</dependency>
|
|
</dependencies>
|
|
<build>
|
|
<pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<systemPropertyVariables>
|
|
<run.h2>true</run.h2>
|
|
|
|
<auth.server.wildfly.cluster>true</auth.server.wildfly.cluster>
|
|
<auth.server.undertow>false</auth.server.undertow>
|
|
<adapter.test.props>${adapter.test.props}</adapter.test.props>
|
|
|
|
<keycloak.balancer.home>${keycloak.balancer.home}</keycloak.balancer.home>
|
|
<keycloak.backend1.home>${keycloak.backend1.home}</keycloak.backend1.home>
|
|
<keycloak.backend2.home>${keycloak.backend2.home}</keycloak.backend2.home>
|
|
|
|
<!--100-->
|
|
<auth.server.backend1.port.offset>101</auth.server.backend1.port.offset>
|
|
<auth.server.backend2.port.offset>102</auth.server.backend2.port.offset>
|
|
<!--8180-->
|
|
<auth.server.backend1.http.port>8181</auth.server.backend1.http.port>
|
|
<auth.server.backend2.http.port>8182</auth.server.backend2.http.port>
|
|
<!--8543-->
|
|
<auth.server.backend1.https.port>8544</auth.server.backend1.https.port>
|
|
<auth.server.backend2.https.port>8545</auth.server.backend2.https.port>
|
|
<!--10090-->
|
|
<auth.server.backend1.management.port>10091</auth.server.backend1.management.port>
|
|
<auth.server.backend2.management.port>10092</auth.server.backend2.management.port>
|
|
<!--10099-->
|
|
<auth.server.backend1.management.port.jmx>10100</auth.server.backend1.management.port.jmx>
|
|
<auth.server.backend2.management.port.jmx>10101</auth.server.backend2.management.port.jmx>
|
|
</systemPropertyVariables>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>unpack-auth-server-wildfly</id>
|
|
<phase>generate-test-resources</phase>
|
|
<goals>
|
|
<goal>unpack</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifactItems>
|
|
<artifactItem>
|
|
<groupId>org.keycloak.testsuite</groupId>
|
|
<artifactId>integration-arquillian-server-wildfly-balancer</artifactId>
|
|
<version>${project.version}</version>
|
|
<type>zip</type>
|
|
<outputDirectory>${containers.home}/balancer</outputDirectory>
|
|
</artifactItem>
|
|
<artifactItem>
|
|
<groupId>org.keycloak.testsuite</groupId>
|
|
<artifactId>integration-arquillian-server-wildfly</artifactId>
|
|
<version>${project.version}</version>
|
|
<type>zip</type>
|
|
<outputDirectory>${containers.home}/node1</outputDirectory>
|
|
</artifactItem>
|
|
<artifactItem>
|
|
<groupId>org.keycloak.testsuite</groupId>
|
|
<artifactId>integration-arquillian-server-wildfly</artifactId>
|
|
<version>${project.version}</version>
|
|
<type>zip</type>
|
|
<outputDirectory>${containers.home}/node2</outputDirectory>
|
|
</artifactItem>
|
|
</artifactItems>
|
|
<overWriteIfNewer>true</overWriteIfNewer>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</pluginManagement>
|
|
</build>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>auth-server-eap7</id>
|
|
<properties>
|
|
<auth.server.container>auth-server-eap7</auth.server.container>
|
|
<startup.timeout.sec>300</startup.timeout.sec>
|
|
<adapter.test.props/>
|
|
<keycloak.home>${containers.home}/keycloak-${version.server.dist}</keycloak.home>
|
|
<jboss.server.config.dir>${keycloak.home}/standalone/configuration</jboss.server.config.dir>
|
|
</properties>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.wildfly</groupId>
|
|
<artifactId>wildfly-arquillian-container-managed</artifactId>
|
|
</dependency>
|
|
</dependencies>
|
|
<build>
|
|
<pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>enforce-properties</id>
|
|
<goals>
|
|
<goal>enforce</goal>
|
|
</goals>
|
|
<configuration>
|
|
<rules>
|
|
<requireProperty>
|
|
<property>version.server.dist</property>
|
|
</requireProperty>
|
|
</rules>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<systemPropertyVariables>
|
|
<auth.server.eap7>true</auth.server.eap7>
|
|
<auth.server.undertow>false</auth.server.undertow>
|
|
<keycloak.home>${keycloak.home}</keycloak.home>
|
|
<adapter.test.props>${adapter.test.props}</adapter.test.props>
|
|
</systemPropertyVariables>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>unpack-auth-server-eap</id>
|
|
<phase>generate-test-resources</phase>
|
|
<goals>
|
|
<goal>unpack</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifactItems>
|
|
<artifactItem>
|
|
<groupId>org.keycloak.testsuite</groupId>
|
|
<artifactId>integration-arquillian-server-eap7</artifactId>
|
|
<version>${project.version}</version>
|
|
<type>zip</type>
|
|
</artifactItem>
|
|
</artifactItems>
|
|
<outputDirectory>${containers.home}</outputDirectory>
|
|
<overWriteIfNewer>true</overWriteIfNewer>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</pluginManagement>
|
|
</build>
|
|
</profile>
|
|
|
|
<!-- Profiles for migration tests-->
|
|
|
|
<profile>
|
|
<id>migration</id>
|
|
<activation>
|
|
<property>
|
|
<name>migrated.auth.server.version</name>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<!--diable exclusion pattern for migration tests, which is enabled by default in the base/pom.xml-->
|
|
<exclude.migration>-</exclude.migration>
|
|
</properties>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>enforce-properties</id>
|
|
<goals>
|
|
<goal>enforce</goal>
|
|
</goals>
|
|
<configuration>
|
|
<rules>
|
|
<requireProperty>
|
|
<property>migrated.auth.server.version</property>
|
|
</requireProperty>
|
|
</rules>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>unpack-migrated-auth-server-wildfly</id>
|
|
<phase>generate-test-resources</phase>
|
|
<goals>
|
|
<goal>unpack</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifactItems>
|
|
<artifactItem>
|
|
<groupId>org.keycloak.testsuite</groupId>
|
|
<artifactId>${migrated.auth.server.artifactId}</artifactId>
|
|
<version>${project.version}</version>
|
|
<type>zip</type>
|
|
</artifactItem>
|
|
</artifactItems>
|
|
<outputDirectory>${containers.home}</outputDirectory>
|
|
<overWriteIfNewer>true</overWriteIfNewer>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<systemPropertyVariables>
|
|
<migrated.auth.server.version>${migrated.auth.server.version}</migrated.auth.server.version>
|
|
</systemPropertyVariables>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>migration-kc16</id>
|
|
<activation>
|
|
<property>
|
|
<name>migrated.auth.server.version</name>
|
|
<value>1.6.1.Final</value>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<migrated.auth.server.artifactId>integration-arquillian-server-wildfly-kc16</migrated.auth.server.artifactId>
|
|
</properties>
|
|
<build>
|
|
<pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<systemPropertyVariables>
|
|
<auth.server.wildfly.kc16>true</auth.server.wildfly.kc16>
|
|
<keycloak.migration.home>${containers.home}/keycloak-${migrated.auth.server.version}</keycloak.migration.home>
|
|
<keycloak.migration.file>src/test/resources/migration-test/migration-realm-16.json</keycloak.migration.file>
|
|
</systemPropertyVariables>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</pluginManagement>
|
|
</build>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>migration-kc15</id>
|
|
<activation>
|
|
<property>
|
|
<name>migrated.auth.server.version</name>
|
|
<value>1.5.1.Final</value>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<migrated.auth.server.artifactId>integration-arquillian-server-wildfly-kc15</migrated.auth.server.artifactId>
|
|
</properties>
|
|
<build>
|
|
<pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<systemPropertyVariables>
|
|
<auth.server.wildfly.kc15>true</auth.server.wildfly.kc15>
|
|
<keycloak.migration.home>${containers.home}/keycloak-${migrated.auth.server.version}</keycloak.migration.home>
|
|
<keycloak.migration.file>src/test/resources/migration-test/migration-realm-15.json</keycloak.migration.file>
|
|
</systemPropertyVariables>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</pluginManagement>
|
|
</build>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>migration-kc14</id>
|
|
<activation>
|
|
<property>
|
|
<name>migrated.auth.server.version</name>
|
|
<value>1.4.0.Final</value>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<migrated.auth.server.artifactId>integration-arquillian-server-wildfly-kc14</migrated.auth.server.artifactId>
|
|
</properties>
|
|
<build>
|
|
<pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<systemPropertyVariables>
|
|
<auth.server.wildfly.kc14>true</auth.server.wildfly.kc14>
|
|
<keycloak.migration.home>${containers.home}/keycloak-${migrated.auth.server.version}</keycloak.migration.home>
|
|
</systemPropertyVariables>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</pluginManagement>
|
|
</build>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>migration-kc13</id>
|
|
<activation>
|
|
<property>
|
|
<name>migrated.auth.server.version</name>
|
|
<value>1.3.1.Final</value>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<migrated.auth.server.artifactId>integration-arquillian-server-wildfly-kc13</migrated.auth.server.artifactId>
|
|
</properties>
|
|
<build>
|
|
<pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<systemPropertyVariables>
|
|
<auth.server.wildfly.kc13>true</auth.server.wildfly.kc13>
|
|
<keycloak.migration.home>${containers.home}/keycloak-${migrated.auth.server.version}</keycloak.migration.home>
|
|
</systemPropertyVariables>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</pluginManagement>
|
|
</build>
|
|
</profile>
|
|
|
|
<profile>
|
|
<id>migration-kc12</id>
|
|
<activation>
|
|
<property>
|
|
<name>migrated.auth.server.version</name>
|
|
<value>1.2.0.Final</value>
|
|
</property>
|
|
</activation>
|
|
<properties>
|
|
<migrated.auth.server.artifactId>integration-arquillian-server-wildfly-kc12</migrated.auth.server.artifactId>
|
|
</properties>
|
|
<build>
|
|
<pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<systemPropertyVariables>
|
|
<auth.server.wildfly.kc12>true</auth.server.wildfly.kc12>
|
|
<keycloak.migration.home>${containers.home}/keycloak-${migrated.auth.server.version}</keycloak.migration.home>
|
|
</systemPropertyVariables>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</pluginManagement>
|
|
</build>
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
</project>
|