Keycloak

Форк
0
208 строк · 8.3 Кб
1
<?xml version="1.0"?>
2
<!--
3
  ~ Copyright 2021 Red Hat, Inc. and/or its affiliates
4
  ~ and other contributors as indicated by the @author tags.
5
  ~
6
  ~ Licensed under the Apache License, Version 2.0 (the "License");
7
  ~ you may not use this file except in compliance with the License.
8
  ~ You may obtain a copy of the License at
9
  ~
10
  ~ http://www.apache.org/licenses/LICENSE-2.0
11
  ~
12
  ~ Unless required by applicable law or agreed to in writing, software
13
  ~ distributed under the License is distributed on an "AS IS" BASIS,
14
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
  ~ See the License for the specific language governing permissions and
16
  ~ limitations under the License.
17
  -->
18

19
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
20
         xmlns="http://maven.apache.org/POM/4.0.0"
21
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
22
    <modelVersion>4.0.0</modelVersion>
23

24
    <parent>
25
        <artifactId>keycloak-quarkus-test-parent</artifactId>
26
        <groupId>org.keycloak</groupId>
27
        <version>999.0.0-SNAPSHOT</version>
28
        <relativePath>../pom.xml</relativePath>
29
    </parent>
30

31
    <name>Keycloak Quarkus Server Integration tests</name>
32
    <artifactId>keycloak-quarkus-integration-tests</artifactId>
33
    <packaging>jar</packaging>
34

35
    <properties>
36
        <kc.quarkus.tests.dist>raw</kc.quarkus.tests.dist>
37
        <approvaltests.version>14.0.0</approvaltests.version>
38
        <build-helper-maven-plugin.version>3.3.0</build-helper-maven-plugin.version>
39
    </properties>
40

41
    <dependencies>
42
        <dependency>
43
            <groupId>org.keycloak</groupId>
44
            <artifactId>keycloak-junit5</artifactId>
45
            <scope>test</scope>
46
        </dependency>
47
        <dependency>
48
            <groupId>io.rest-assured</groupId>
49
            <artifactId>rest-assured</artifactId>
50
            <scope>test</scope>
51
        </dependency>
52
        <dependency>
53
            <groupId>com.approvaltests</groupId>
54
            <artifactId>approvaltests</artifactId>
55
            <version>${approvaltests.version}</version>
56
            <scope>test</scope>
57
        </dependency>
58
        <dependency>
59
            <groupId>org.bouncycastle</groupId>
60
            <artifactId>bc-fips</artifactId>
61
            <scope>test</scope>
62
        </dependency>
63
        <dependency>
64
            <groupId>org.bouncycastle</groupId>
65
            <artifactId>bcpkix-fips</artifactId>
66
            <scope>test</scope>
67
        </dependency>
68
        <dependency>
69
            <groupId>org.bouncycastle</groupId>
70
            <artifactId>bctls-fips</artifactId>
71
            <scope>test</scope>
72
        </dependency>
73
        <dependency>
74
            <groupId>com.fasterxml.jackson.core</groupId>
75
            <artifactId>jackson-databind</artifactId>
76
        </dependency>
77

78
        <!-- JDBC Drivers -->
79
        <dependency>
80
            <groupId>com.microsoft.sqlserver</groupId>
81
            <artifactId>mssql-jdbc</artifactId>
82
            <scope>test</scope>
83
        </dependency>
84
        <dependency>
85
            <groupId>com.oracle.database.jdbc</groupId>
86
            <artifactId>ojdbc11</artifactId>
87
            <scope>test</scope>
88
        </dependency>
89
        <dependency>
90
            <groupId>com.oracle.database.nls</groupId>
91
            <artifactId>orai18n</artifactId>
92
            <scope>test</scope>
93
        </dependency>
94

95
        <!-- Minimal test dependencies to *-deployment artifacts for consistent build order -->
96
        <dependency>
97
            <groupId>org.keycloak</groupId>
98
            <artifactId>keycloak-quarkus-server-deployment</artifactId>
99
            <version>${project.version}</version>
100
            <type>pom</type>
101
            <scope>test</scope>
102
            <exclusions>
103
                <exclusion>
104
                    <groupId>*</groupId>
105
                    <artifactId>*</artifactId>
106
                </exclusion>
107
            </exclusions>
108
        </dependency>
109
    </dependencies>
110

111
    <build>
112
        <plugins>
113
            <plugin>
114
                <groupId>org.apache.maven.plugins</groupId>
115
                <artifactId>maven-surefire-plugin</artifactId>
116
                <configuration>
117
                    <argLine>-Djdk.net.hosts.file=${project.build.testOutputDirectory}/hosts_file -XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError --add-opens=java.base/java.security=ALL-UNNAMED</argLine>
118
                    <systemPropertyVariables>
119
                        <kc.quarkus.tests.dist>${kc.quarkus.tests.dist}</kc.quarkus.tests.dist>
120
                    </systemPropertyVariables>
121
                </configuration>
122
            </plugin>
123
            <plugin>
124
                <groupId>org.codehaus.mojo</groupId>
125
                <artifactId>build-helper-maven-plugin</artifactId>
126
                <version>${build-helper-maven-plugin.version}</version>
127
                <executions>
128
                    <execution>
129
                        <id>add-test-provider-sources</id>
130
                        <phase>generate-test-sources</phase>
131
                        <goals>
132
                            <goal>add-test-source</goal>
133
                        </goals>
134
                        <configuration>
135
                            <sources>
136
                                <source>src/test-providers/java</source>
137
                            </sources>
138
                        </configuration>
139
                    </execution>
140
                    <execution>
141
                        <id>add-test-provider-resources</id>
142
                        <phase>generate-test-resources</phase>
143
                        <goals>
144
                            <goal>add-test-resource</goal>
145
                        </goals>
146
                        <configuration>
147
                            <resources>
148
                                <resource>
149
                                    <directory>src/test-providers/resources</directory>
150
                                </resource>
151
                            </resources>
152
                        </configuration>
153
                    </execution>
154
                </executions>
155
            </plugin>
156
        </plugins>
157
    </build>
158

159
    <profiles>
160
        <profile>
161
            <id>test-database</id>
162
            <activation>
163
                <activeByDefault>false</activeByDefault>
164
            </activation>
165
            <build>
166
                <plugins>
167
                    <plugin>
168
                        <groupId>org.apache.maven.plugins</groupId>
169
                        <artifactId>maven-surefire-plugin</artifactId>
170
                        <configuration>
171
                            <argLine>-Xmx1024m -XX:MaxMetaspaceSize=512m -XX:+ExitOnOutOfMemoryError -XX:+HeapDumpOnOutOfMemoryError</argLine>
172
                            <systemPropertyVariables>
173
                                <kc.test.storage.database>true</kc.test.storage.database>
174
                                <!--DB Container -->
175
                                <kc.db.postgresql.container.image>postgres:${postgresql.version}</kc.db.postgresql.container.image>
176
                                <kc.db.mariadb.container.image>mariadb:${mariadb.version}</kc.db.mariadb.container.image>
177
                                <kc.db.mysql.container.image>mysql:${mysql.version}</kc.db.mysql.container.image>
178
                                <kc.infinispan.container.image>quay.io/infinispan/server:${infinispan.version}</kc.infinispan.container.image>
179
                                <kc.db.mssql.container.image>mcr.microsoft.com/mssql/server:${mssql.version}</kc.db.mssql.container.image>
180
                            </systemPropertyVariables>
181
                        </configuration>
182
                    </plugin>
183
                </plugins>
184
            </build>
185
        </profile>
186
        <profile>
187
            <id>includeGelf</id>
188
            <activation>
189
                <property>
190
                    <name>!product</name>
191
                </property>
192
            </activation>
193
            <build>
194
                <plugins>
195
                    <plugin>
196
                        <artifactId>maven-surefire-plugin</artifactId>
197
                        <configuration>
198
                            <systemPropertyVariables>
199
                                <includeGelf>true</includeGelf>
200
                            </systemPropertyVariables>
201
                        </configuration>
202
                    </plugin>
203
                </plugins>
204
            </build>
205
        </profile>
206
    </profiles>
207

208
</project>
209

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.