Skip to content

Commit

Permalink
Fix data-index-oracle behave to reflect new error
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo Zanini <[email protected]>
  • Loading branch information
ricardozanini committed Dec 26, 2023
1 parent 4513faf commit 5b062d3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/features/data-index/kogito-data-index-oracle.feature
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,15 @@ Feature: Kogito-data-index oracle feature.
Scenario: verify if of container is correctly started with oracle parameters
When container is started with env
| variable | value |
| SCRIPT_DEBUG | true |
| QUARKUS_DATASOURCE_JDBC_URL | jdbc:oracle:thin:@//10.1.1.53:1521/quarkus |
| QUARKUS_DATASOURCE_USERNAME | kogito |
| QUARKUS_DATASOURCE_PASSWORD | s3cr3t |
Then container log should contain -Djava.library.path=/home/kogito/lib -Dquarkus.http.host=0.0.0.0 -Dquarkus.http.port=8080 -jar /home/kogito/bin/quarkus-app/quarkus-run.jar
And container log should contain java.sql.SQLException: Acquisition timeout while waiting for new connection
Then container log should contain java.sql.SQLRecoverableException: ORA-17002: I/O error
And container log should not contain Application failed to start

Scenario: check if the default quarkus profile is correctly set on data index
When container is started with env
| variable | value |
| SCRIPT_DEBUG | true |
Then container log should contain -Dquarkus.profile=kafka-events-support
Then container log should contain -Dquarkus.profile=kafka-events-support
And container log should contain -Djava.library.path=/home/kogito/lib -Dquarkus.http.host=0.0.0.0 -Dquarkus.http.port=8080 -jar /home/kogito/bin/quarkus-app/quarkus-run.jar

0 comments on commit 5b062d3

Please sign in to comment.