Skip to content

Commit

Permalink
Smart router system test
Browse files Browse the repository at this point in the history
  • Loading branch information
gmunozfe committed Apr 19, 2022
1 parent cabbb6e commit e4dd7b0
Show file tree
Hide file tree
Showing 26 changed files with 1,452 additions and 8 deletions.
2 changes: 1 addition & 1 deletion jbpm-system-test/jbpm-clustered-ejb-timers-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.jbpm</groupId>
<artifactId>jbpm-system-test</artifactId>
<version>7.67.0.Final</version>
<version>7.68.0.Final</version>
</parent>

<artifactId>jbpm-clustered-ejb-timers-test</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jbpm-system-test/jbpm-duplicated-deadlines-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.jbpm</groupId>
<artifactId>jbpm-system-test</artifactId>
<version>7.67.0.Final</version>
<version>7.68.0.Final</version>
</parent>

<artifactId>jbpm-duplicated-deadlines-test</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jbpm-system-test/jbpm-ldap-concurrency-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.jbpm</groupId>
<artifactId>jbpm-system-test</artifactId>
<version>7.67.0.Final</version>
<version>7.68.0.Final</version>
</parent>

<artifactId>jbpm-ldap-concurrency-test</artifactId>
Expand Down
36 changes: 36 additions & 0 deletions jbpm-system-test/jbpm-smartrouter-test/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Eclipse, Netbeans and IntelliJ files
/.*
!.gitignore
/nbproject
/*.ipr
/*.iws
/*.iml

# Repository wide ignore mac DS_Store files
.DS_Store

# Compiled class file
*.class

# Log file
*.log

# BlueJ files
*.ctxt

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
/target/
/.classpath
/.project
19 changes: 19 additions & 0 deletions jbpm-system-test/jbpm-smartrouter-test/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Smart Router Network Issues
========================================================

This project is explained in this blog entry (https://blog.kie.org/2022/03/smart-router.html)

## Building

For building this project locally, you firstly need to have the following tools installed locally:
- git client
- Java 1.8
- Maven
- docker (because of testcontainers makes use of it).

Once you have cloned the repository locally all you need to do is to execute the following Maven build:

```
mvn clean install
```

104 changes: 104 additions & 0 deletions jbpm-system-test/jbpm-smartrouter-test/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jbpm</groupId>
<artifactId>jbpm-system-test</artifactId>
<version>7.68.0.Final</version>
</parent>

<artifactId>jbpm-smartrouter-test</artifactId>

<name>Smart Router Test</name>
<description>Smart Router test</description>

<properties>
<image.toxiproxy.version>2.4.0</image.toxiproxy.version>
</properties>

<dependencies>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>toxiproxy</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.skyscreamer</groupId>
<artifactId>jsonassert</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/drivers</outputDirectory>
<includeGroupIds>org.postgresql</includeGroupIds>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>wget</goal>
</goals>
<configuration>
<url>http://raw.githubusercontent.com/kiegroup/jbpm/${version.org.kie}/jbpm-db-scripts/src/main/resources/db/ddl-scripts/postgresql/postgresql-jbpm-schema.sql</url>
<outputFileName>postgresql-jbpm-schema.sql</outputFileName>
<unpack>false</unpack>
<outputDirectory>${project.build.directory}/postgresql</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<org.kie.samples.image.node1>quay.io/kiegroup/jbpm-server-full:${version.org.kie}</org.kie.samples.image.node1>
<org.kie.samples.image.node3>quay.io/kiegroup/kie-server-showcase:${version.org.kie}</org.kie.samples.image.node3>
<org.kie.samples.script.node1>start_jbpm-wb.sh</org.kie.samples.script.node1>
<org.kie.samples.script.node3>start_kie-server.sh</org.kie.samples.script.node3>
<org.kie.samples.server.node1>full</org.kie.samples.server.node1>
<org.kie.samples.server.node3>kie-server</org.kie.samples.server.node3>
<org.kie.samples.server.location.node1>https://toxiproxy:8666</org.kie.samples.server.location.node1>
<org.kie.samples.server.location.node3>http://toxiproxy3:8666</org.kie.samples.server.location.node3>
<org.kie.samples.image.smartrouter.repo_url>https://github.com/kiegroup/droolsjbpm-integration</org.kie.samples.image.smartrouter.repo_url>
<org.kie.samples.image.smartrouter.branch>main</org.kie.samples.image.smartrouter.branch>
<org.kie.samples.image.postgresql>postgres:${image.postgresql.version}</org.kie.samples.image.postgresql>
<org.kie.samples.image.toxiproxy>ghcr.io/shopify/toxiproxy:${image.toxiproxy.version}</org.kie.samples.image.toxiproxy>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
</project>

0 comments on commit e4dd7b0

Please sign in to comment.