2021-11-23 14:45:46 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!--
|
|
|
|
~ Copyright 2021 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>
|
|
|
|
<artifactId>keycloak-quarkus-test-parent</artifactId>
|
|
|
|
<groupId>org.keycloak</groupId>
|
2023-03-03 10:11:44 +00:00
|
|
|
<version>999.0.0-SNAPSHOT</version>
|
2021-11-23 14:45:46 +00:00
|
|
|
<relativePath>../pom.xml</relativePath>
|
|
|
|
</parent>
|
2021-12-05 14:13:57 +00:00
|
|
|
|
2021-11-23 14:45:46 +00:00
|
|
|
<name>Keycloak Quarkus Server Integration tests</name>
|
|
|
|
<artifactId>keycloak-quarkus-integration-tests</artifactId>
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
|
2021-12-05 14:13:57 +00:00
|
|
|
<properties>
|
|
|
|
<kc.quarkus.tests.dist>raw</kc.quarkus.tests.dist>
|
2022-03-08 10:04:43 +00:00
|
|
|
<approvaltests.version>14.0.0</approvaltests.version>
|
2022-09-23 12:29:05 +00:00
|
|
|
<build-helper-maven-plugin.version>3.3.0</build-helper-maven-plugin.version>
|
2021-12-05 14:13:57 +00:00
|
|
|
</properties>
|
|
|
|
|
2021-11-23 14:45:46 +00:00
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<artifactId>keycloak-quarkus-server</artifactId>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- Minimal test dependencies to *-deployment artifacts for consistent build order -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<artifactId>keycloak-quarkus-server-deployment</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
<type>pom</type>
|
|
|
|
<scope>test</scope>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>*</groupId>
|
|
|
|
<artifactId>*</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
2022-09-23 12:29:05 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>io.quarkus</groupId>
|
|
|
|
<artifactId>quarkus-junit5-internal</artifactId>
|
|
|
|
</dependency>
|
2023-01-11 21:30:04 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
<version>${junit.version}</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
2022-02-01 08:42:09 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.keycloak</groupId>
|
|
|
|
<artifactId>keycloak-quarkus-dist</artifactId>
|
|
|
|
<type>zip</type>
|
|
|
|
</dependency>
|
2021-11-23 14:45:46 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>io.quarkus</groupId>
|
|
|
|
<artifactId>quarkus-junit5</artifactId>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>io.rest-assured</groupId>
|
|
|
|
<artifactId>rest-assured</artifactId>
|
2021-11-29 14:20:50 +00:00
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.testcontainers</groupId>
|
|
|
|
<artifactId>junit-jupiter</artifactId>
|
2021-11-23 14:45:46 +00:00
|
|
|
</dependency>
|
2021-12-05 14:13:57 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>com.approvaltests</groupId>
|
|
|
|
<artifactId>approvaltests</artifactId>
|
|
|
|
<version>${approvaltests.version}</version>
|
|
|
|
</dependency>
|
2022-05-25 19:29:37 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.testcontainers</groupId>
|
|
|
|
<artifactId>postgresql</artifactId>
|
|
|
|
</dependency>
|
2022-12-17 07:50:21 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.testcontainers</groupId>
|
|
|
|
<artifactId>cockroachdb</artifactId>
|
|
|
|
</dependency>
|
2022-05-25 19:29:37 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.testcontainers</groupId>
|
|
|
|
<artifactId>mariadb</artifactId>
|
|
|
|
</dependency>
|
2022-07-28 11:00:11 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.testcontainers</groupId>
|
|
|
|
<artifactId>mysql</artifactId>
|
|
|
|
</dependency>
|
2023-01-11 21:30:04 +00:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.maven.wagon</groupId>
|
|
|
|
<artifactId>wagon-http-shared</artifactId>
|
|
|
|
</dependency>
|
2021-11-23 14:45:46 +00:00
|
|
|
</dependencies>
|
2021-11-29 14:20:50 +00:00
|
|
|
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
2023-02-22 11:12:52 +00:00
|
|
|
<argLine>-Djdk.net.hosts.file=${project.build.testOutputDirectory}/hosts_file -XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError --add-opens=java.base/java.security=ALL-UNNAMED</argLine>
|
2021-12-05 14:13:57 +00:00
|
|
|
<systemPropertyVariables>
|
|
|
|
<kc.quarkus.tests.dist>${kc.quarkus.tests.dist}</kc.quarkus.tests.dist>
|
|
|
|
</systemPropertyVariables>
|
2021-11-29 14:20:50 +00:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2022-09-23 12:29:05 +00:00
|
|
|
<plugin>
|
|
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
|
|
<version>${build-helper-maven-plugin.version}</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>add-test-provider-sources</id>
|
|
|
|
<phase>generate-test-sources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>add-test-source</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<sources>
|
|
|
|
<source>src/test-providers/java</source>
|
|
|
|
</sources>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
<execution>
|
|
|
|
<id>add-test-provider-resources</id>
|
|
|
|
<phase>generate-test-resources</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>add-test-resource</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>src/test-providers/resources</directory>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2021-11-29 14:20:50 +00:00
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
|
2021-12-21 16:45:16 +00:00
|
|
|
<profiles>
|
|
|
|
<profile>
|
|
|
|
<id>test-database</id>
|
|
|
|
<activation>
|
|
|
|
<activeByDefault>false</activeByDefault>
|
|
|
|
</activation>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<configuration>
|
2022-12-15 09:14:30 +00:00
|
|
|
<argLine>-Xmx1024m -XX:MaxMetaspaceSize=512m -XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError</argLine>
|
2022-07-15 13:21:31 +00:00
|
|
|
<systemPropertyVariables>
|
2021-12-21 16:45:16 +00:00
|
|
|
<kc.test.storage.database>true</kc.test.storage.database>
|
2022-07-15 13:21:31 +00:00
|
|
|
<!--DB Container -->
|
|
|
|
<kc.db.postgresql.container.image>postgres:alpine</kc.db.postgresql.container.image>
|
|
|
|
<kc.db.mariadb.container.image>mariadb:10.5.9</kc.db.mariadb.container.image>
|
2022-08-25 11:09:34 +00:00
|
|
|
<kc.infinispan.container.image>quay.io/infinispan/server:${infinispan.version}</kc.infinispan.container.image>
|
2022-07-15 13:21:31 +00:00
|
|
|
</systemPropertyVariables>
|
2021-12-21 16:45:16 +00:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
</profile>
|
|
|
|
</profiles>
|
|
|
|
|
2023-02-22 11:12:52 +00:00
|
|
|
</project>
|