aboutsummaryrefslogtreecommitdiffstats
path: root/aai-traversal/pom.xml
diff options
context:
space:
mode:
authorEric Santos <eric.santos@yoppworks.com>2021-05-06 14:19:25 -0400
committerM.Hosnidokht <mohammad.hosnidokht@yoppworks.com>2021-05-28 09:43:46 -0400
commitfd3ec07e00ff409d92fea0a3ae11260669a9197a (patch)
treef0ebcd61796a2f373e42037b44ad95d969b6292b /aai-traversal/pom.xml
parent6180838e24698c885091d65603c6ce19c54853f4 (diff)
Add multi-tenancy integration tests
- Created a separate directory under 'src' for integration tests - Moved all multi-tenancy related integration test classes and files into 'it' directory - Depends on https://gerrit.onap.org/r/c/ci-management/+/121244 Issue-ID: AAI-3325 Signed-off-by: Santos, Eric <eric.santos@yoppworks.com> Change-Id: I7d43fc0a72874c2b25dfc40ea5331783bd496d15
Diffstat (limited to 'aai-traversal/pom.xml')
-rw-r--r--aai-traversal/pom.xml48
1 files changed, 48 insertions, 0 deletions
diff --git a/aai-traversal/pom.xml b/aai-traversal/pom.xml
index d45af14..345b697 100644
--- a/aai-traversal/pom.xml
+++ b/aai-traversal/pom.xml
@@ -100,7 +100,9 @@
<micrometer-core.version>1.6.6</micrometer-core.version>
<micrometer-registry-prometheus.version>1.6.6</micrometer-registry-prometheus.version>
<micrometer-jersey2>1.6.6</micrometer-jersey2>
+ <testcontainers.version>1.6.1</testcontainers.version>
<!-- End of Default ONAP Schema Properties -->
+ <build.helper-maven-plugin.version>3.2.0</build.helper-maven-plugin.version>
</properties>
<profiles>
<!-- Docker profile to be used for building docker image and pushing to
@@ -729,6 +731,18 @@
<groupId>org.keycloak</groupId>
<artifactId>keycloak-spring-boot-starter</artifactId>
</dependency>
+ <dependency>
+ <groupId>com.github.dasniko</groupId>
+ <artifactId>testcontainers-keycloak</artifactId>
+ <version>${testcontainers.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.keycloak</groupId>
+ <artifactId>keycloak-admin-client</artifactId>
+ <version>${keycloak.version}</version>
+ <scope>test</scope>
+ </dependency>
</dependencies>
<dependencyManagement>
<dependencies>
@@ -964,6 +978,7 @@
<configuration>
<mainClass>${start-class}</mainClass>
<layout>ZIP</layout>
+ <classifier>exec</classifier>
</configuration>
<executions>
<execution>
@@ -1052,6 +1067,39 @@
<skip>false</skip>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>${build.helper-maven-plugin.version}</version>
+ <executions>
+ <execution>
+ <id>add-integration-test-source</id>
+ <phase>generate-test-sources</phase>
+ <goals>
+ <goal>add-test-source</goal>
+ </goals>
+ <configuration>
+ <sources>
+ <source>src/it/java</source>
+ </sources>
+ </configuration>
+ </execution>
+ <execution>
+ <id>add-integration-test-resource</id>
+ <phase>generate-test-resources</phase>
+ <goals>
+ <goal>add-test-resource</goal>
+ </goals>
+ <configuration>
+ <resources>
+ <resource>
+ <directory>src/it/resources</directory>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</project>