Skip to content

Commit

Permalink
Refactor DbClient integration tests (#9104)
Browse files Browse the repository at this point in the history
- Use TestContainers, with oraclelinux based images
- Add one sub-module per database, add modules for h2, mysql, pgsql, oracle, mongo
- Add missing bom and all entry for helidon-integrations-db-pgsql

Refactor tests/integration/harness
- Removed all the suite support (potentially add back later in a different shape)
- Re-worked HelidonProcessRunner, to mimic TestContainers
  • Loading branch information
romain-grecourt authored Aug 6, 2024
1 parent 7c05a74 commit bc1ea3d
Show file tree
Hide file tree
Showing 243 changed files with 16,981 additions and 14,570 deletions.
4 changes: 4 additions & 0 deletions all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,10 @@
<groupId>io.helidon.integrations.db</groupId>
<artifactId>helidon-integrations-db-mysql</artifactId>
</dependency>
<dependency>
<groupId>io.helidon.integrations.db</groupId>
<artifactId>helidon-integrations-db-pgsql</artifactId>
</dependency>
<dependency>
<groupId>io.helidon.integrations.cdi</groupId>
<artifactId>helidon-integrations-cdi-configurable</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,11 @@
<artifactId>helidon-integrations-db-mysql</artifactId>
<version>${helidon.version}</version>
</dependency>
<dependency>
<groupId>io.helidon.integrations.db</groupId>
<artifactId>helidon-integrations-db-pgsql</artifactId>
<version>${helidon.version}</version>
</dependency>
<dependency>
<groupId>io.helidon.integrations.cdi</groupId>
<artifactId>helidon-integrations-cdi-configurable</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions dependencies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1304,6 +1304,11 @@
<artifactId>mysql</artifactId>
<version>${version.lib.testcontainers}</version>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>jdbc</artifactId>
<version>${version.lib.testcontainers}</version>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>oracle-xe</artifactId>
Expand Down
5 changes: 5 additions & 0 deletions docs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@
<version>${version.lib.jbatch.container}</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<optional>true</optional>
</dependency>
</dependencies>

<dependencyManagement>
Expand Down
1 change: 1 addition & 0 deletions etc/copyright-exclude.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,4 @@ src/test/resources/static/classpath/index.html
._java_
._inject_
service.loader
.repo
35 changes: 0 additions & 35 deletions etc/pods/mysql.yaml

This file was deleted.

44 changes: 0 additions & 44 deletions etc/pods/vault.yaml

This file was deleted.

265 changes: 0 additions & 265 deletions tests/integration/dbclient/app/pom.xml

This file was deleted.

Loading

0 comments on commit bc1ea3d

Please sign in to comment.