framework-functional-tests
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>org.openidentityplatform.commons.auth-filters.authz-filter</groupId>
<artifactId>framework-functional-tests</artifactId>
<version>3.1.2</version>
</dependency><?xml version="1.0" encoding="UTF-8"?>
<!--
* The contents of this file are subject to the terms of the Common Development and
* Distribution License (the License). You may not use this file except in compliance with the
* License.
*
* You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
* specific language governing permission and limitations under the License.
*
* When distributing Covered Software, include this CDDL Header Notice in each file and include
* the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
* Header, with the fields enclosed by brackets [] replaced by your own identifying
* information: "Portions copyright [year] [name of copyright owner]".
*
* Copyright 2014-2016 ForgeRock AS.
* Portions copyright 2020-2025 3A Systems LLC.
-->
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.openidentityplatform.commons.auth-filters</groupId>
<artifactId>authz-filter</artifactId>
<version>3.1.2</version>
</parent>
<groupId>org.openidentityplatform.commons.auth-filters.authz-filter</groupId>
<artifactId>framework-functional-tests</artifactId>
<packaging>war</packaging>
<name>${project.groupId}.${project.artifactId}</name>
<description>Functional tests for the authorization framework.</description>
<properties>
<hostname>localhost</hostname>
<context.uri>framework</context.uri>
<maven.cargo.containerId>tomcat10x</maven.cargo.containerId>
</properties>
<build>
<finalName>${project.groupId}.${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<skipTests>false</skipTests>
<!--<suiteXmlFiles>-->
<!--<suiteXmlFile>${basedir}/testng.xml</suiteXmlFile>-->
<!--</suiteXmlFiles>-->
<includes>
<include>**/*.java</include>
</includes>
<systemPropertyVariables>
<AUTHZ_PORT>${servlet.port}</AUTHZ_PORT>
<AUTHZ_HOST>${hostname}</AUTHZ_HOST>
<AUTHZ_URI>/${context.uri}</AUTHZ_URI>
<ROOT_PATH>${project.build.directory}</ROOT_PATH>
</systemPropertyVariables>
</configuration>
<executions>
<execution>
<id>integration-test</id>
<phase>integration-test</phase>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven3-plugin</artifactId>
<configuration>
<!-- Container configuration -->
<container>
<containerId>${maven.cargo.containerId}</containerId>
</container>
<!-- Configuration to use with the container or the deployer -->
<configuration>
<home>${project.build.directory}/deploy</home>
<properties>
<cargo.servlet.port>${servlet.port}</cargo.servlet.port>
<cargo.tomcat.ajp.port>${servlet.ajp.port}</cargo.tomcat.ajp.port>
<cargo.rmi.port>8206</cargo.rmi.port>
</properties>
</configuration>
<deployables>
<deployable>
<groupId>org.openidentityplatform.commons.auth-filters.authz-filter</groupId>
<artifactId>framework-functional-tests</artifactId>
<type>war</type>
<properties>
<context>${context.uri}</context>
</properties>
</deployable>
</deployables>
</configuration>
<executions>
<execution>
<id>start-container</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>stop-container</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>reserve-ports</id>
<phase>initialize</phase>
<goals>
<goal>reserve-network-port</goal>
</goals>
<configuration>
<portNames>
<portName>servlet.port</portName>
<portName>servlet.ajp.port</portName>
</portNames>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.openidentityplatform.commons.auth-filters.authz-filter</groupId>
<artifactId>framework</artifactId>
</dependency>
<dependency>
<groupId>org.openidentityplatform.commons.http-framework</groupId>
<artifactId>servlet</artifactId>
</dependency>
<dependency>
<groupId>org.openidentityplatform.commons</groupId>
<artifactId>json-resource-http</artifactId>
</dependency>
<dependency>
<groupId>jakarta.servlet</groupId>
<artifactId>jakarta.servlet-api</artifactId>
<version>${servlet-api.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.jayway.restassured</groupId>
<artifactId>rest-assured</artifactId>
<scope>test</scope>
</dependency>
<!-- Module Dependencies -->
<dependency>
<groupId>org.openidentityplatform.commons.auth-filters.authz-filter.modules</groupId>
<artifactId>oauth2-module</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<profiles>
<profile>
<id>jdk17.options</id>
<activation>
<jdk>[17,)</jdk>
</activation>
<properties>
<maven.cargo.containerId>tomcat11x</maven.cargo.containerId>
</properties>
</profile>
</profiles>
</project>