Skip to content

Commit

Permalink
HSEARCH-4242 Run tests with Oracle
Browse files Browse the repository at this point in the history
  • Loading branch information
fax4ever committed Jul 21, 2021
1 parent 9b26718 commit 173f0b7
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ stage('Configure') {
condition: TestCondition.AFTER_MERGE, dockerHubImage: "mysql:8.0.22"),
new DatabaseBuildEnvironment(dbName: 'db2', mavenProfile: 'ci-db2',
condition: TestCondition.AFTER_MERGE, dockerHubImage: "ibmcom/db2:11.5.5.0"),
new DatabaseBuildEnvironment(dbName: 'oracle', mavenProfile: 'ci-oracle',
condition: TestCondition.AFTER_MERGE, dockerHubImage: "gvenzl/oracle-xe:11-slim")
],
esLocal: [
// --------------------------------------------
Expand Down
42 changes: 42 additions & 0 deletions parents/integrationtest/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,30 @@
</wait>
</run>
</image>
<image>
<name>${test.database.run.oracle.image.name}:${test.database.run.oracle.image.tag}</name>
<alias>oracle</alias>
<run>
<skip>${test.database.run.oracle.skip}</skip>
<env>
<ORACLE_PASSWORD>hibernate_orm_test</ORACLE_PASSWORD>
</env>
<ports>
<port>1521:1521</port>
</ports>
<log>
<prefix>Oracle Database: </prefix>
<date>default</date>
<color>blue</color>
</log>
<wait>
<!-- good docs found at: http://dmp.fabric8.io/#build-healthcheck -->
<!-- Unfortunately booting this is slow, needs to set a generous timeout: -->
<time>60000</time>
<log>DATABASE IS READY TO USE!</log>
</wait>
</run>
</image>
</images>
<!--Stops all images currently running, not just those we just started.
Useful to stop processes still running from a previously failed integration test run -->
Expand Down Expand Up @@ -811,6 +835,24 @@
</properties>
</profile>

<!-- Oracle Docker container for tests -->
<!-- See test.database.run.oracle.image.tag for the server version in use -->
<profile>
<id>ci-oracle</id>
<properties>
<test.database.run.oracle.skip>false</test.database.run.oracle.skip>
<db.dialect>org.hibernate.dialect.Oracle10gDialect</db.dialect>
<jdbc.driver.groupId>com.oracle.database.jdbc</jdbc.driver.groupId>
<jdbc.driver.artifactId>ojdbc8</jdbc.driver.artifactId>
<jdbc.driver.version>21.1.0.0</jdbc.driver.version>
<jdbc.driver>oracle.jdbc.OracleDriver</jdbc.driver>
<jdbc.url>jdbc:oracle:thin:@localhost:1521/XE</jdbc.url>
<jdbc.user>SYSTEM</jdbc.user>
<jdbc.pass>hibernate_orm_test</jdbc.pass>
<jdbc.isolation />
</properties>
</profile>

<!--
###################################################################
Then, those with commercial drivers
Expand Down
5 changes: 5 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,11 @@
<test.database.run.db2.skip>true</test.database.run.db2.skip>
<test.database.run.db2.image.name>ibmcom/db2</test.database.run.db2.image.name>
<test.database.run.db2.image.tag>11.5.5.0</test.database.run.db2.image.tag>
<!-- Oracle -->
<test.database.run.oracle.skip>true</test.database.run.oracle.skip>
<!-- See https://hub.docker.com/r/gvenzl/oracle-xe -->
<test.database.run.oracle.image.name>gvenzl/oracle-xe</test.database.run.oracle.image.name>
<test.database.run.oracle.image.tag>11-slim</test.database.run.oracle.image.tag>

<!-- Eclipse plugin options -->

Expand Down

0 comments on commit 173f0b7

Please sign in to comment.