Skip to content

Commit

Permalink
KOGITO-3208: implement integration-tests-trusty-service
Browse files Browse the repository at this point in the history
  • Loading branch information
kostola committed Sep 28, 2020
1 parent cc5d549 commit 463ea19
Show file tree
Hide file tree
Showing 67 changed files with 1,516 additions and 309 deletions.
6 changes: 6 additions & 0 deletions explainability/explainability-service-messaging/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@
<artifactId>cloudevents-api</artifactId>
</dependency>

<!-- Build container image -->
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-container-image-jib</artifactId>
</dependency>

<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit5</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#Container image
quarkus.container-image.build=true
quarkus.container-image.group=org.kie.kogito

# Kafka Explainability Request
mp.messaging.incoming.trusty-explainability-request.group.id=trusty
mp.messaging.incoming.trusty-explainability-request.connector=smallrye-kafka
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

<parent>
<groupId>org.kie.kogito</groupId>
<artifactId>integration-tests</artifactId>
<artifactId>integration-tests-jobs-service</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>

<artifactId>integration-tests-common</artifactId>
<artifactId>integration-tests-jobs-service-common</artifactId>

<name>Kogito Apps :: Integration Tests :: Common</name>
<name>Kogito Apps :: Integration Tests :: Jobs Service :: Common</name>
<description>Processes and common classes for integration tests</description>

<properties>
Expand Down Expand Up @@ -72,4 +72,4 @@
</plugin>
</plugins>
</build>
</project>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.kie.kogito</groupId>
<artifactId>integration-tests</artifactId>
<artifactId>integration-tests-jobs-service</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<artifactId>integration-tests-quarkus</artifactId>
<name>Kogito Apps :: Integration Tests :: Quarkus</name>
<artifactId>integration-tests-jobs-service-quarkus</artifactId>
<name>Kogito Apps :: Integration Tests :: Jobs Service :: Quarkus</name>

<dependencyManagement>
<dependencies>
Expand Down Expand Up @@ -45,7 +45,7 @@

<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>integration-tests-common</artifactId>
<artifactId>integration-tests-jobs-service-common</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -73,7 +73,7 @@
<configuration>
<outputDirectory>${project.basedir}/src/main/resources/kogito/</outputDirectory>
<resourceBundles>
<resourceBundle>org.kie.kogito:integration-tests-common:${project.version}</resourceBundle>
<resourceBundle>org.kie.kogito:integration-tests-jobs-service-common:${project.version}</resourceBundle>
</resourceBundles>
</configuration>
</execution>
Expand Down Expand Up @@ -110,4 +110,4 @@
</plugin>
</plugins>
</build>
</project>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.kie.kogito</groupId>
<artifactId>integration-tests</artifactId>
<artifactId>integration-tests-jobs-service</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>
<artifactId>integration-tests-springboot</artifactId>
<name>Kogito Apps :: Integration Tests :: Spring Boot</name>
<artifactId>integration-tests-jobs-service-springboot</artifactId>
<name>Kogito Apps :: Integration Tests :: Jobs Service :: Spring Boot</name>

<properties>
<sonar.exclusions>**/KogitoApplication.java</sonar.exclusions>
Expand All @@ -29,7 +29,7 @@
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>integration-tests-common</artifactId>
<artifactId>integration-tests-jobs-service-common</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -67,7 +67,7 @@
</goals>
<configuration>
<resourceBundles>
<resourceBundle>org.kie.kogito:integration-tests-common:${project.version}</resourceBundle>
<resourceBundle>org.kie.kogito:integration-tests-jobs-service-common:${project.version}</resourceBundle>
</resourceBundles>
</configuration>
</execution>
Expand Down Expand Up @@ -99,4 +99,4 @@
</plugin>
</plugins>
</build>
</project>
</project>
80 changes: 80 additions & 0 deletions integration-tests/integration-tests-jobs-service/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.kie.kogito</groupId>
<artifactId>integration-tests</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>

<artifactId>integration-tests-jobs-service</artifactId>
<name>Kogito Apps :: Integration Tests :: Jobs Service</name>
<packaging>pom</packaging>

<modules>
<module>integration-tests-jobs-service-common</module>
<module>integration-tests-jobs-service-quarkus</module>
<module>integration-tests-jobs-service-springboot</module>
</modules>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-bom</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-bom</artifactId>
<version>${version.io.quarkus}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>integration-tests-jobs-service-common</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<dependencies>
<!-- ensure jobs-service module was built, but not added in the classpath -->
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>jobs-service</artifactId>
<version>${project.version}</version>
<scope>runtime</scope>
</dependency>
</dependencies>
<configuration>
<systemPropertyVariables>
<container.image.infinispan>${container.image.infinispan}</container.image.infinispan>
<container.image.jobs-service>${container.image.jobs-service}</container.image.jobs-service>
<container.image.keycloak>${container.image.keycloak}</container.image.keycloak>
</systemPropertyVariables>
<classesDirectory>${project.build.outputDirectory}</classesDirectory>
</configuration>
<executions>
<execution>
<id>default</id>
<phase>test</phase>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<?xml version="1.0"?>
<project 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"
xmlns="http://maven.apache.org/POM/4.0.0">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.kie.kogito</groupId>
<artifactId>integration-tests-trusty-service</artifactId>
<version>1.0.0-SNAPSHOT</version>
</parent>

<artifactId>integration-tests-trusty-service-common</artifactId>

<name>Kogito Apps :: Integration Tests :: Trusty Service :: Common</name>
<description>Processes and common classes for integration tests</description>

<properties>
<sonar.exclusions>**/it/*.java,**/testcontainers/*.java</sonar.exclusions>
</properties>

<dependencies>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>trusty-service-api</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>testcontainers</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>kafka</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.rest-assured</groupId>
<artifactId>rest-assured</artifactId>
<scope>compile</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-remote-resources-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>bundle</goal>
</goals>
<configuration>
<includes>
<include>**/*.dmn</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Loading

0 comments on commit 463ea19

Please sign in to comment.