2013-10-10 10:49:36 +00:00
|
|
|
<?xml version="1.0"?>
|
2014-03-29 15:28:52 +00:00
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
2013-10-10 10:49:36 +00:00
|
|
|
<parent>
|
2014-06-16 16:37:33 +00:00
|
|
|
<artifactId>keycloak-testsuite-pom</artifactId>
|
2013-10-10 10:49:36 +00:00
|
|
|
<groupId>org.keycloak</groupId>
|
2014-06-19 09:19:10 +00:00
|
|
|
<version>1.0-beta-4-SNAPSHOT</version>
|
2014-06-16 16:37:33 +00:00
|
|
|
<relativePath>../pom.xml</relativePath>
|
2013-10-10 10:49:36 +00:00
|
|
|
</parent>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
2013-10-11 09:40:51 +00:00
|
|
|
|
2013-10-10 10:49:36 +00:00
|
|
|
<artifactId>keycloak-testsuite-integration</artifactId>
|
|
|
|
<name>Keycloak Integration TestSuite</name>
|
2013-10-11 09:40:51 +00:00
|
|
|
<description />
|
|
|
|
|
2013-10-10 10:49:36 +00:00
|
|
|
<dependencyManagement>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<artifactId>keycloak-as7-adapter</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</dependencyManagement>
|
2013-10-11 09:40:51 +00:00
|
|
|
|
2013-10-10 10:49:36 +00:00
|
|
|
<dependencies>
|
2014-07-22 13:10:38 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<artifactId>keycloak-dependencies-server-all</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
<type>pom</type>
|
|
|
|
</dependency>
|
2014-07-14 12:51:48 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<artifactId>keycloak-admin-client</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
</dependency>
|
2014-07-24 07:38:08 +00:00
|
|
|
<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>
|
|
|
|
<version>${slf4j.version}</version>
|
|
|
|
</dependency>
|
2013-10-12 10:04:35 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss.spec.javax.servlet</groupId>
|
2014-06-05 11:54:02 +00:00
|
|
|
<artifactId>jboss-servlet-api_3.0_spec</artifactId>
|
2013-10-12 10:04:35 +00:00
|
|
|
</dependency>
|
2014-04-10 09:21:07 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
|
|
<artifactId>jaxrs-api</artifactId>
|
|
|
|
<version>${resteasy.version.latest}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
|
|
<artifactId>resteasy-jaxrs</artifactId>
|
|
|
|
<version>${resteasy.version.latest}</version>
|
|
|
|
<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>
|
|
|
|
<version>${resteasy.version.latest}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
|
|
<artifactId>resteasy-crypto</artifactId>
|
|
|
|
<version>${resteasy.version.latest}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
|
|
<artifactId>resteasy-multipart-provider</artifactId>
|
|
|
|
<version>${resteasy.version.latest}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
|
|
<artifactId>resteasy-jackson-provider</artifactId>
|
|
|
|
<version>${resteasy.version.latest}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss.resteasy</groupId>
|
|
|
|
<artifactId>resteasy-undertow</artifactId>
|
|
|
|
<version>${resteasy.version.latest}</version>
|
|
|
|
</dependency>
|
2014-04-10 15:29:47 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.google.zxing</groupId>
|
|
|
|
<artifactId>javase</artifactId>
|
|
|
|
</dependency>
|
2013-10-10 10:49:36 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.bouncycastle</groupId>
|
|
|
|
<artifactId>bcprov-jdk16</artifactId>
|
|
|
|
</dependency>
|
2014-03-14 01:47:46 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
|
|
<artifactId>httpclient</artifactId>
|
2014-06-05 11:54:02 +00:00
|
|
|
<version>${keycloak.apache.httpcomponents.version}</version>
|
2014-03-14 01:47:46 +00:00
|
|
|
</dependency>
|
2014-07-23 21:05:49 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<artifactId>keycloak-ldap-federation</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
</dependency>
|
2014-07-08 11:58:20 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.keycloak</groupId>
|
2014-07-22 13:10:38 +00:00
|
|
|
<artifactId>keycloak-undertow-adapter</artifactId>
|
2014-04-29 09:44:37 +00:00
|
|
|
<version>${project.version}</version>
|
|
|
|
</dependency>
|
2013-10-10 10:49:36 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.jboss.logging</groupId>
|
|
|
|
<artifactId>jboss-logging</artifactId>
|
|
|
|
</dependency>
|
2013-10-21 08:57:02 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>log4j</groupId>
|
|
|
|
<artifactId>log4j</artifactId>
|
|
|
|
</dependency>
|
2013-10-10 10:49:36 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>io.undertow</groupId>
|
|
|
|
<artifactId>undertow-servlet</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.undertow</groupId>
|
|
|
|
<artifactId>undertow-core</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.codehaus.jackson</groupId>
|
|
|
|
<artifactId>jackson-core-asl</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.codehaus.jackson</groupId>
|
|
|
|
<artifactId>jackson-mapper-asl</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.codehaus.jackson</groupId>
|
|
|
|
<artifactId>jackson-xc</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
</dependency>
|
2014-03-15 10:15:10 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.hamcrest</groupId>
|
|
|
|
<artifactId>hamcrest-all</artifactId>
|
|
|
|
</dependency>
|
2013-10-10 10:49:36 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.hibernate.javax.persistence</groupId>
|
|
|
|
<artifactId>hibernate-jpa-2.0-api</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.h2database</groupId>
|
|
|
|
<artifactId>h2</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.hibernate</groupId>
|
|
|
|
<artifactId>hibernate-entitymanager</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.icegreen</groupId>
|
|
|
|
<artifactId>greenmail</artifactId>
|
2014-03-18 17:59:22 +00:00
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.slf4j</groupId>
|
|
|
|
<artifactId>slf4j-api</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
2013-10-10 10:49:36 +00:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.seleniumhq.selenium</groupId>
|
|
|
|
<artifactId>selenium-java</artifactId>
|
|
|
|
</dependency>
|
2014-02-17 12:58:24 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>xml-apis</groupId>
|
|
|
|
<artifactId>xml-apis</artifactId>
|
|
|
|
</dependency>
|
2013-11-03 13:33:22 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.seleniumhq.selenium</groupId>
|
|
|
|
<artifactId>selenium-chrome-driver</artifactId>
|
|
|
|
</dependency>
|
2014-03-18 17:59:22 +00:00
|
|
|
<dependency>
|
2014-07-24 07:38:08 +00:00
|
|
|
<groupId>org.picketbox</groupId>
|
|
|
|
<artifactId>picketbox-ldap</artifactId>
|
|
|
|
<scope>compile</scope>
|
|
|
|
<type>test-jar</type>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.picketbox</groupId>
|
|
|
|
<artifactId>picketbox-ldap</artifactId>
|
|
|
|
<scope>compile</scope>
|
2014-03-18 17:59:22 +00:00
|
|
|
</dependency>
|
2013-10-10 10:49:36 +00:00
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
2013-12-06 13:33:47 +00:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<skip>true</skip>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2013-10-10 10:49:36 +00:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<configuration>
|
2014-03-31 09:17:16 +00:00
|
|
|
<source>${maven.compiler.source}</source>
|
|
|
|
<target>${maven.compiler.target}</target>
|
2013-10-10 10:49:36 +00:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2013-10-15 10:03:17 +00:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<workingDirectory>${project.basedir}</workingDirectory>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2013-10-10 10:49:36 +00:00
|
|
|
</plugins>
|
|
|
|
</build>
|
2013-10-11 09:40:51 +00:00
|
|
|
|
2013-10-10 10:49:36 +00:00
|
|
|
<profiles>
|
|
|
|
<profile>
|
2013-10-12 10:29:12 +00:00
|
|
|
<id>keycloak-server</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<mainClass>org.keycloak.testutils.KeycloakServer</mainClass>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
2013-10-10 10:49:36 +00:00
|
|
|
</profile>
|
|
|
|
<profile>
|
2013-10-12 10:29:12 +00:00
|
|
|
<id>mail-server</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<mainClass>org.keycloak.testutils.MailServer</mainClass>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
<profile>
|
|
|
|
<id>totp</id>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<mainClass>org.keycloak.testutils.TotpGenerator</mainClass>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
2013-10-10 10:49:36 +00:00
|
|
|
</profile>
|
2014-02-06 22:25:38 +00:00
|
|
|
|
2014-07-24 07:38:08 +00:00
|
|
|
<profile>
|
|
|
|
<id>jpa</id>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<systemPropertyVariables>
|
|
|
|
<keycloak.realm.provider>jpa</keycloak.realm.provider>
|
|
|
|
<keycloak.user.provider>jpa</keycloak.user.provider>
|
|
|
|
<keycloak.audit.provider>jpa</keycloak.audit.provider>
|
|
|
|
<keycloak.userSessions.provider>jpa</keycloak.userSessions.provider>
|
|
|
|
</systemPropertyVariables>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
|
2014-02-06 22:25:38 +00:00
|
|
|
<profile>
|
|
|
|
<id>mongo</id>
|
|
|
|
|
|
|
|
<properties>
|
2014-07-17 09:05:51 +00:00
|
|
|
<keycloak.connectionsMongo.host>localhost</keycloak.connectionsMongo.host>
|
|
|
|
<keycloak.connectionsMongo.port>27018</keycloak.connectionsMongo.port>
|
|
|
|
<keycloak.connectionsMongo.db>keycloak</keycloak.connectionsMongo.db>
|
|
|
|
<keycloak.connectionsMongo.clearOnStartup>true</keycloak.connectionsMongo.clearOnStartup>
|
|
|
|
<keycloak.connectionsMongo.bindIp>127.0.0.1</keycloak.connectionsMongo.bindIp>
|
2014-02-06 22:25:38 +00:00
|
|
|
</properties>
|
|
|
|
|
2014-02-10 16:36:46 +00:00
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
|
|
|
|
<!-- Postpone tests to "integration-test" phase, so that we can bootstrap embedded mongo on 27018 before running tests -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>test</id>
|
|
|
|
<phase>integration-test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>test</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<systemPropertyVariables>
|
2014-07-17 09:05:51 +00:00
|
|
|
<keycloak.realm.provider>mongo</keycloak.realm.provider>
|
|
|
|
<keycloak.user.provider>mongo</keycloak.user.provider>
|
|
|
|
<keycloak.audit.provider>mongo</keycloak.audit.provider>
|
2014-07-24 07:38:08 +00:00
|
|
|
<keycloak.userSessions.provider>mongo</keycloak.userSessions.provider>
|
2014-07-17 09:05:51 +00:00
|
|
|
<keycloak.connectionsMongo.host>${keycloak.connectionsMongo.host}</keycloak.connectionsMongo.host>
|
|
|
|
<keycloak.connectionsMongo.port>${keycloak.connectionsMongo.port}</keycloak.connectionsMongo.port>
|
|
|
|
<keycloak.connectionsMongo.db>${keycloak.connectionsMongo.db}</keycloak.connectionsMongo.db>
|
|
|
|
<keycloak.connectionsMongo.clearOnStartup>${keycloak.connectionsMongo.clearOnStartup}</keycloak.connectionsMongo.clearOnStartup>
|
|
|
|
<keycloak.connectionsMongo.bindIp>${keycloak.connectionsMongo.bindIp}</keycloak.connectionsMongo.bindIp>
|
2014-02-10 16:36:46 +00:00
|
|
|
</systemPropertyVariables>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>default-test</id>
|
|
|
|
<configuration>
|
|
|
|
<skip>true</skip>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<!-- Embedded mongo -->
|
|
|
|
<plugin>
|
|
|
|
<groupId>com.github.joelittlejohn.embedmongo</groupId>
|
|
|
|
<artifactId>embedmongo-maven-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>start-mongodb</id>
|
|
|
|
<phase>pre-integration-test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>start</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2014-07-17 09:05:51 +00:00
|
|
|
<port>${keycloak.connectionsMongo.port}</port>
|
2014-02-10 16:36:46 +00:00
|
|
|
<logging>file</logging>
|
|
|
|
<logFile>${project.build.directory}/mongodb.log</logFile>
|
2014-07-17 09:05:51 +00:00
|
|
|
<bindIp>${keycloak.connectionsMongo.bindIp}</bindIp>
|
2014-02-10 16:36:46 +00:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>stop-mongodb</id>
|
|
|
|
<phase>post-integration-test</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>stop</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
2014-02-06 22:25:38 +00:00
|
|
|
</profile>
|
2014-07-18 15:32:38 +00:00
|
|
|
|
|
|
|
<!-- MySQL -->
|
|
|
|
<profile>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>keycloak.connectionsJpa.driver</name>
|
|
|
|
<value>com.mysql.jdbc.Driver</value>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<id>mysql</id>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>mysql</groupId>
|
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
|
|
<version>${mysql.version}</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</profile>
|
|
|
|
|
|
|
|
<!-- PostgreSQL -->
|
|
|
|
<profile>
|
|
|
|
<activation>
|
|
|
|
<property>
|
|
|
|
<name>keycloak.connectionsJpa.driver</name>
|
|
|
|
<value>org.postgresql.Driver</value>
|
|
|
|
</property>
|
|
|
|
</activation>
|
|
|
|
<id>postgresql</id>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.postgresql</groupId>
|
|
|
|
<artifactId>postgresql</artifactId>
|
|
|
|
<version>${postgresql.version}</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</profile>
|
|
|
|
|
2013-10-10 10:49:36 +00:00
|
|
|
</profiles>
|
2014-04-07 09:37:21 +00:00
|
|
|
</project>
|