Skip to content

Commit

Permalink
Fix jobsservices features tests
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo Zanini <[email protected]>
  • Loading branch information
ricardozanini committed Dec 18, 2024
1 parent 4211ab8 commit c0085cd
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,4 @@ Feature: Kogito-jobs-service-all-in-one feature.
| QUARKUS_DATASOURCE_PASSWORD | 123456 |
| QUARKUS_DATASOURCE_JDBC_URL | jdbc:postgresql://10.11.12.13:5432/hibernate_orm_test |
Then container log should contain -Dquarkus.http.host=0.0.0.0 -Dquarkus.http.port=8080 -jar "/home/kogito/bin/postgresql/quarkus-app/quarkus-run.jar"
And container log should contain QUARKUS_DATASOURCE_DB_KIND=postgresql
And container log should contain QUARKUS_DATASOURCE_USERNAME=test
And container log should contain QUARKUS_DATASOURCE_PASSWORD=123456
And container log should contain QUARKUS_DATASOURCE_JDBC_URL=jdbc:postgresql://10.11.12.13:5432/hibernate_orm_test
And container log should contain Trying to establish a protocol version 3 connection to 10.11.12.13:5432
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ Feature: Kogito-jobs-service common feature.
| SCRIPT_DEBUG | false |
| ENABLE_EVENTS | true |
| KOGITO_JOBS_PROPS | -Dkafka.bootstrap.servers=localhost:11111 |
Then container log should contain -Dkafka.bootstrap.servers=localhost:11111 -Dquarkus.profile=events-support -Dquarkus.http.host=0.0.0.0 -Dquarkus.http.port=8080 -jar
Then container log should contain localhost:11111
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@
# under the License.
#

@docker.io/apache/incubator-kie-kogito-jobs-service-ephemeral
@docker.io/apache/incubator-kie-kogito-jobs-service-ephemeral
@docker.io/apache/incubator-kie-kogito-jobs-service-ephemeral
Feature: Kogito-jobs-service common feature.

Scenario: verify if the events is correctly enabled
When container is started with env
| variable | value |
| SCRIPT_DEBUG | false |
| SCRIPT_DEBUG | false |
| ENABLE_EVENTS | true |
| KOGITO_JOBS_PROPS | -Dkafka.bootstrap.servers=localhost:11111 |
Then container log should contain -Dkafka.bootstrap.servers=localhost:11111 -Dquarkus.profile=events-support -Dquarkus.http.host=0.0.0.0 -Dquarkus.http.port=8080
Then container log should contain localhost:11111
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# under the License.
#

@docker.io/apache/incubator-kie-kogito-jobs-service-postgresql
@docker.io/apache/incubator-kie-kogito-jobs-service-postgresql
@docker.io/apache/incubator-kie-kogito-jobs-service-postgresql
Feature: Kogito-jobs-service common feature.

Expand All @@ -28,4 +26,4 @@ Feature: Kogito-jobs-service common feature.
| SCRIPT_DEBUG | false |
| ENABLE_EVENTS | true |
| KOGITO_JOBS_PROPS | -Dkafka.bootstrap.servers=localhost:11111 |
Then container log should contain -Dkafka.bootstrap.servers=localhost:11111 -Dquarkus.profile=events-support -Dquarkus.http.host=0.0.0.0 -Dquarkus.http.port=8080 -jar
Then container log should contain localhost:11111
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Feature: Kogito-jobs-service-postgresql feature.

Scenario: Verify if the application jar exists
When container is started with command bash
Then run sh -c 'ls /home/kogito/bin/quarkus-app/quarkus-run.jar' in container and immediately check its output for "/home/kogito/bin/quarkus-app/quarkus-run.jar"
Then run sh -c 'ls /home/kogito/bin/quarkus-app/quarkus-run.jar' in container and immediately check its output for /home/kogito/bin/quarkus-app/quarkus-run.jar

Scenario: verify if container starts as expected
When container is started with env
Expand All @@ -42,8 +42,4 @@ Feature: Kogito-jobs-service-postgresql feature.
| QUARKUS_DATASOURCE_PASSWORD | 123456 |
| QUARKUS_DATASOURCE_JDBC_URL | jdbc:postgresql://10.11.12.13:5432/hibernate_orm_test |
Then container log should contain -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 QUARKUS_DATASOURCE_DB_KIND=postgresql
And container log should contain QUARKUS_DATASOURCE_USERNAME=test
And container log should contain QUARKUS_DATASOURCE_PASSWORD=123456
And container log should contain QUARKUS_DATASOURCE_JDBC_URL=jdbc:postgresql://10.11.12.13:5432/hibernate_orm_test
And container log should contain Trying to establish a protocol version 3 connection to 10.11.12.13:5432

0 comments on commit c0085cd

Please sign in to comment.