|
1 | | -<!-- Copyright 2018, Oracle Corporation and/or its affiliates. All rights |
| 1 | +<!-- Copyright 2018, 2019, Oracle Corporation and/or its affiliates. All rights |
2 | 2 | reserved. --> |
3 | 3 | <!-- Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl. --> |
4 | 4 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|
25 | 25 | <url>https://github.com/oracle/weblogic-kubernetes-operator/blob/master/LICENSE</url> |
26 | 26 | </license> |
27 | 27 | </licenses> |
| 28 | + |
| 29 | + <properties> |
| 30 | + <src-integration-test>${project.basedir}/src/test/java</src-integration-test> |
| 31 | + <resource-integration-test>${project.basedir}/src/test/resources</resource-integration-test> |
| 32 | + </properties> |
| 33 | + |
28 | 34 | <dependencies> |
29 | 35 | <!-- test dependencies --> |
30 | 36 | <dependency> |
|
61 | 67 | <artifactId>guava</artifactId> |
62 | 68 | <version>${guava-version}</version> |
63 | 69 | </dependency> |
64 | | - <!-- JSON processing: jackson --> |
| 70 | + <!-- JSON processing: jackson --> |
65 | 71 | <dependency> |
66 | 72 | <groupId>com.fasterxml.jackson.core</groupId> |
67 | 73 | <artifactId>jackson-core</artifactId> |
|
173 | 179 | <groupId>org.apache.maven.plugins</groupId> |
174 | 180 | <artifactId>maven-surefire-plugin</artifactId> |
175 | 181 | <version>${maven-surefire-plugin-version}</version> |
| 182 | + <configuration> |
| 183 | + <skipTests>true</skipTests> |
| 184 | + </configuration> |
176 | 185 | </plugin> |
177 | 186 | <plugin> |
178 | 187 | <groupId>org.apache.maven.plugins</groupId> |
|
224 | 233 | <artifactId>jacoco-maven-plugin</artifactId> |
225 | 234 | <version>${jacoco.version}</version> |
226 | 235 | </plugin> |
| 236 | + <plugin> |
| 237 | + <groupId>org.codehaus.mojo</groupId> |
| 238 | + <artifactId>exec-maven-plugin</artifactId> |
| 239 | + <version>1.6.0</version> |
| 240 | + <executions> |
| 241 | + <execution> |
| 242 | + <goals> |
| 243 | + <goal>java</goal> |
| 244 | + </goals> |
| 245 | + <configuration> |
| 246 | + <skip>${skipITs}</skip> |
| 247 | + </configuration> |
| 248 | + </execution> |
| 249 | + <execution> |
| 250 | + <id>setupenv</id> |
| 251 | + <phase>pre-integration-test</phase> |
| 252 | + <goals> |
| 253 | + <goal>exec</goal> |
| 254 | + </goals> |
| 255 | + <configuration> |
| 256 | + <environmentVariables> |
| 257 | + <JRF_ENABLED>${jrf_enabled}</JRF_ENABLED> |
| 258 | + </environmentVariables> |
| 259 | + <skip>${skipITs}</skip> |
| 260 | + <executable>${resource-integration-test}/setupenv.sh</executable> |
| 261 | + </configuration> |
| 262 | + </execution> |
| 263 | + </executions> |
| 264 | + </plugin> |
| 265 | + <plugin> |
| 266 | + <groupId>org.codehaus.mojo</groupId> |
| 267 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 268 | + <version>3.0.0</version> |
| 269 | + <executions> |
| 270 | + <execution> |
| 271 | + <id>add-test-source</id> |
| 272 | + <phase>generate-test-resources</phase> |
| 273 | + <goals> |
| 274 | + <goal>add-test-source</goal> |
| 275 | + </goals> |
| 276 | + <configuration> |
| 277 | + <sources> |
| 278 | + <source>${src-integration-test}</source> |
| 279 | + </sources> |
| 280 | + </configuration> |
| 281 | + </execution> |
| 282 | + <execution> |
| 283 | + <id>add-test-resource</id> |
| 284 | + <phase>generate-test-resources</phase> |
| 285 | + <goals> |
| 286 | + <goal>add-test-resource</goal> |
| 287 | + </goals> |
| 288 | + <configuration> |
| 289 | + <resources> |
| 290 | + <resource> |
| 291 | + <directory>${resource-integration-test}</directory> |
| 292 | + </resource> |
| 293 | + </resources> |
| 294 | + </configuration> |
| 295 | + </execution> |
| 296 | + </executions> |
| 297 | + </plugin> |
| 298 | + |
| 299 | + <plugin> |
| 300 | + <groupId>org.apache.maven.plugins</groupId> |
| 301 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 302 | + <version>${maven-failsafe-plugin-version}</version> |
| 303 | + <configuration> |
| 304 | + <argLine> |
| 305 | + --illegal-access=permit |
| 306 | + </argLine> |
| 307 | + <encoding>UTF-8</encoding> |
| 308 | + <argLine> |
| 309 | + --illegal-access=permit |
| 310 | + </argLine> |
| 311 | + <argLine>${failsafeArgLine}</argLine> |
| 312 | + <failIfNoTests>false</failIfNoTests> |
| 313 | + <systemPropertyVariables> |
| 314 | + <maxThreads>3</maxThreads> |
| 315 | + </systemPropertyVariables> |
| 316 | + <additionalClasspathElements> |
| 317 | + <additionalClasspathElement>${project.basedir}/src/test/resources/wlthint3client.jar</additionalClasspathElement> |
| 318 | + </additionalClasspathElements> |
| 319 | + <includes> |
| 320 | + <include> |
| 321 | + ${includes-failsafe} |
| 322 | + </include> |
| 323 | + </includes> |
| 324 | + </configuration> |
| 325 | + |
| 326 | + <executions> |
| 327 | + <execution> |
| 328 | + <id>integration-tests</id> |
| 329 | + <goals> |
| 330 | + <goal>integration-test</goal> |
| 331 | + <goal>verify</goal> |
| 332 | + </goals> |
| 333 | + <phase>integration-test</phase> |
| 334 | + <configuration> |
| 335 | + <skipTests>${skipITs}</skipTests> |
| 336 | + <systemPropertyVariables> |
| 337 | + <java.util.logging.SimpleFormatter.format>%1$tm-%1$td-%1$tY %1$tH:%1$tM:%1$tS %4$-6s %2$s %5$s%6$s%n</java.util.logging.SimpleFormatter.format> |
| 338 | + </systemPropertyVariables> |
| 339 | + <trimStackTrace>false</trimStackTrace> |
| 340 | + </configuration> |
| 341 | + </execution> |
| 342 | + </executions> |
| 343 | + </plugin> |
227 | 344 | </plugins> |
228 | 345 | </build> |
229 | 346 |
|
230 | 347 | <profiles> |
231 | | - |
232 | 348 | <profile> |
233 | 349 | <id>java-integration-tests</id> |
234 | 350 | <properties> |
235 | | - <src-integration-test>${project.basedir}/src/test/java</src-integration-test> |
236 | | - <resource-integration-test>${project.basedir}/src/test/resources</resource-integration-test> |
237 | 351 | <skipITs>false</skipITs> |
| 352 | + <includes-failsafe>**/IT*</includes-failsafe> |
| 353 | + <jrf_enabled>false</jrf_enabled> |
| 354 | + </properties> |
| 355 | + </profile> |
| 356 | + <profile> |
| 357 | + <id>jrf-integration-tests</id> |
| 358 | + <properties> |
| 359 | + <skipITs>false</skipITs> |
| 360 | + <includes-failsafe>**/JrfInOperatorTest.java</includes-failsafe> |
| 361 | + <jrf_enabled>true</jrf_enabled> |
| 362 | + </properties> |
| 363 | + </profile> |
| 364 | + <profile> |
| 365 | + <id>default</id> |
| 366 | + <activation> |
| 367 | + <activeByDefault>true</activeByDefault> |
| 368 | + </activation> |
| 369 | + <properties> |
| 370 | + <surefireArgLine></surefireArgLine> |
| 371 | + <failsafeArgLine></failsafeArgLine> |
| 372 | + <skipITs>true</skipITs> |
| 373 | + <jrf_enabled>false</jrf_enabled> |
238 | 374 | </properties> |
239 | | - <build> |
240 | | - <plugins> |
241 | | - <plugin> |
242 | | - <groupId>org.codehaus.mojo</groupId> |
243 | | - <artifactId>exec-maven-plugin</artifactId> |
244 | | - <version>${exec-maven-plugin-version}</version> |
245 | | - <executions> |
246 | | - <execution> |
247 | | - <goals> |
248 | | - <goal>java</goal> |
249 | | - </goals> |
250 | | - </execution> |
251 | | - <execution><!-- pull or build images, create secrets, etc --> |
252 | | - <id>setupenv</id> |
253 | | - <phase>pre-integration-test</phase> |
254 | | - <goals> |
255 | | - <goal>exec</goal> |
256 | | - </goals> |
257 | | - <configuration> |
258 | | - <executable>${resource-integration-test}/setupenv.sh</executable> |
259 | | - </configuration> |
260 | | - </execution> |
261 | | - </executions> |
262 | | - </plugin> |
263 | | - <plugin> |
264 | | - <groupId>org.codehaus.mojo</groupId> |
265 | | - <artifactId>build-helper-maven-plugin</artifactId> |
266 | | - <version>3.0.0</version> |
267 | | - <executions> |
268 | | - <execution> |
269 | | - <id>add-test-source</id> |
270 | | - <phase>generate-test-resources</phase> |
271 | | - <goals> |
272 | | - <goal>add-test-source</goal> |
273 | | - </goals> |
274 | | - <configuration> |
275 | | - <sources> |
276 | | - <source>${src-integration-test}</source> |
277 | | - </sources> |
278 | | - </configuration> |
279 | | - </execution> |
280 | | - <execution> |
281 | | - <id>add-test-resource</id> |
282 | | - <phase>generate-test-resources</phase> |
283 | | - <goals> |
284 | | - <goal>add-test-resource</goal> |
285 | | - </goals> |
286 | | - <configuration> |
287 | | - <resources> |
288 | | - <resource> |
289 | | - <directory>${resource-integration-test}</directory> |
290 | | - </resource> |
291 | | - </resources> |
292 | | - </configuration> |
293 | | - </execution> |
294 | | - </executions> |
295 | | - </plugin> |
296 | | - |
297 | | - <plugin> |
298 | | - <groupId>org.apache.maven.plugins</groupId> |
299 | | - <artifactId>maven-failsafe-plugin</artifactId> |
300 | | - <version>${maven-failsafe-plugin-version}</version> |
301 | | - <configuration> <!-- run tests in parallel --> |
302 | | - <argLine> |
303 | | - --illegal-access=permit |
304 | | - </argLine> |
305 | | - <encoding>UTF-8</encoding> |
306 | | - <argLine> |
307 | | - --illegal-access=permit |
308 | | - </argLine> |
309 | | - <failIfNoTests>false</failIfNoTests> |
310 | | - <systemPropertyVariables> |
311 | | - <!-- Add any system properties here --> |
312 | | - <!--<project.build.directory>${project.build.directory}</project.build.directory> --> |
313 | | - <!--<weblogic.operator.root.directory>${basedir}/..</weblogic.operator.root.directory> --> |
314 | | - <!--<TAGS>${env.TAGS}</TAGS> --> |
315 | | - <maxThreads>3</maxThreads> |
316 | | - </systemPropertyVariables> |
317 | | - <additionalClasspathElements> |
318 | | - <additionalClasspathElement>${project.basedir}/src/test/resources/wlthint3client.jar</additionalClasspathElement> |
319 | | - </additionalClasspathElements> |
320 | | - </configuration> |
321 | | - |
322 | | - <executions> |
323 | | - <execution> |
324 | | - <id>integration-tests</id> |
325 | | - <goals> |
326 | | - <goal>integration-test</goal> |
327 | | - <goal>verify</goal> |
328 | | - </goals> |
329 | | - <phase>integration-test</phase> |
330 | | - <configuration> |
331 | | - <skipTests>${skipITs}</skipTests> |
332 | | - <systemPropertyVariables> |
333 | | - <!-- Set JUL Formatting --> |
334 | | - <java.util.logging.SimpleFormatter.format>%1$tm-%1$td-%1$tY %1$tH:%1$tM:%1$tS %4$-6s %2$s %5$s%6$s%n</java.util.logging.SimpleFormatter.format> |
335 | | - </systemPropertyVariables> |
336 | | - <trimStackTrace>false</trimStackTrace> |
337 | | - </configuration> |
338 | | - </execution> |
339 | | - </executions> |
340 | | - </plugin> |
341 | | - </plugins> |
342 | | - </build> |
343 | 375 | </profile> |
344 | 376 | </profiles> |
345 | 377 | </project> |
0 commit comments