-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial Version of DB scripts tests with Testcontainer. (#3)
- unifies the README formatting a bit more. - includes a GitHub verify workflow in maven-verify.yml - rebased on top of dependabot changes Co-authored-by: Bernd Eckenfels <[email protected]>
- Loading branch information
Showing
15 changed files
with
971 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
Sample scripts and templates for setting up the system database of a SEEBURGER BIS 6.7 installation. | ||
Sample scripts and templates for setting up the system database of a *SEEBURGER BIS 6.7* installation. | ||
|
||
## Subdirectories | ||
|
||
Find the DB specific scripts in the following sub directories. | ||
|
||
* [`mssql`](mssql/) - scripts for MS SQL Server as well as Azure SQL Database | ||
* [`oracle`](oracle/) - scripts for Oracle Database | ||
* [`postgresql`](postgresql/) - scripts for PostgreSQL database system | ||
* [`mssql`](mssql/) - scripts for *MS SQL Server* as well as *Azure SQL Database*. | ||
* [`oracle`](oracle/) - scripts for *Oracle Database*. | ||
* [`postgresql`](postgresql/) - scripts for *PostgreSQL* database system. | ||
|
||
## See Also | ||
|
||
To understand how to execute the scripts and what parameters need adjustments, please | ||
consult the *SEEBURGER BIS6 System Database Manual* before executing the scripts. | ||
To understand how to execute the scripts and what parameters need adjustments, | ||
please consult the *SEEBURGER BIS6 System Database Manual* before executing | ||
the scripts. | ||
|
||
The scripts are only valid for the latest release, make sure the `Revision:` date in the header | ||
matches the date printed in the corresponding System Database manual revision. | ||
The scripts are only valid for the latest release, make sure the `Revision:` | ||
date in the header matches the date printed in the corresponding System | ||
Database Manual revision. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.vscode/ | ||
target/ | ||
.project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Maven/Java project used to test some of the resources in this repository. | ||
|
||
## Files | ||
|
||
* `pom.xml` - The Maven Project Model build file to run the tests. | ||
* `OracleTests.java` - Tests `../installation/systemdatabase/oracle/*.sql`. | ||
* `PostgresTests.java` - Tests `../installation/systemdatabase/postgresql/seetst-ddl.sql`. | ||
* `MSSQLServerTests.java` - Tests non Azure `../installation/systemdatabase/mssql/*.sql`. | ||
|
||
## Prerequisite | ||
|
||
This requires JDK 17, a running Docker environment and Maven 3.8 or 3.9.x on the path. | ||
|
||
## Run Tests | ||
|
||
This is usually executed as a Github Integration test, see `/.github/workflows/maven-verify.yml`. | ||
|
||
To manually execute the tests, use: | ||
|
||
``` | ||
cd tests | ||
mvn verify | ||
``` | ||
|
||
Special thanks to the https://java.testcontainer.org project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
<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> | ||
<groupId>com.seeburger.doc.bis6resoures</groupId> | ||
<artifactId>bis6resources-tests</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
<name>Testing bis6-resources (installation scripts) with Testcontainers.</name> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | ||
<maven.compiler.release>17</maven.compiler.release> | ||
</properties> | ||
|
||
<dependencies> | ||
<!-- Required as long as OraceFreeContainer is not in testcontainers-java --> | ||
<dependency> | ||
<groupId>org.apache.commons</groupId> | ||
<artifactId>commons-lang3</artifactId> | ||
<version>3.13.0</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<!-- testcontainer/docker has conflicting versions --> | ||
<dependency> | ||
<artifactId>slf4j-api</artifactId> | ||
<groupId>org.slf4j</groupId> | ||
<version>1.7.36</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<!-- make slf4j not complain (configure: -Dorg.slf4j.simpleLogger.defaultLogLevel=info) --> | ||
<dependency> | ||
<artifactId>slf4j-simple</artifactId> | ||
<groupId>org.slf4j</groupId> | ||
<version>1.7.36</version> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<!-- testcontainer modules for testing various RDBMS --> | ||
<dependency> | ||
<groupId>org.testcontainers</groupId> | ||
<artifactId>testcontainers</artifactId> | ||
<version>1.19.1</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.testcontainers</groupId> | ||
<artifactId>oracle-xe</artifactId> | ||
<version>1.19.1</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.testcontainers</groupId> | ||
<artifactId>postgresql</artifactId> | ||
<version>1.19.1</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.testcontainers</groupId> | ||
<artifactId>mssqlserver</artifactId> | ||
<version>1.19.1</version> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.junit.jupiter</groupId> | ||
<artifactId>junit-jupiter</artifactId> | ||
<version>5.7.1</version> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<!-- JDBC drivers for testing --> | ||
<dependency> | ||
<groupId>com.oracle.database.jdbc</groupId> | ||
<artifactId>ojdbc11</artifactId> | ||
<version>23.3.0.23.09</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.postgresql</groupId> | ||
<artifactId>postgresql</artifactId> | ||
<version>42.6.0</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.microsoft.sqlserver</groupId> | ||
<artifactId>mssql-jdbc</artifactId> | ||
<version>12.4.1.jre11</version> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<pluginManagement> | ||
<plugins> | ||
<!-- since Gitub default Maven is 3.8 we need a compiler who knows release --> | ||
<plugin> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.11.0</version> | ||
</plugin> | ||
<!-- since Gitub default Maven is 3.8 we need a surefire who detects test --> | ||
<plugin> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
<version>3.1.2</version> | ||
</plugin> | ||
</plugins> | ||
</pluginManagement> | ||
</build> | ||
|
||
<inceptionYear>2023</inceptionYear> | ||
<organization> | ||
<name>SEEBURGER AG, Germany</name> | ||
<url>https://github.com/seeburger-ag/</url> | ||
</organization> | ||
<licenses> | ||
<license> | ||
<name>MIT License</name> | ||
<url>https://spdx.org/licenses/MIT.html</url> | ||
<comments>Applies to OracleFreeContainer.java</comments> | ||
</license> | ||
<license> | ||
<name>ASL-2.0</name> | ||
<comments>Applies to files in tests/ directory</comments> | ||
<url>https://spdx.org/licenses/Apache-2.0.html</url> | ||
</license> | ||
<license> | ||
<name>SEEBURGER Proprietary</name> | ||
<distribution>manual</distribution> | ||
<comments>See /LICENSE.txt</comments> | ||
<url>/LICENSE.txt</url> | ||
</license> | ||
</licenses> | ||
</project> |
Oops, something went wrong.