Skip to content

Commit

Permalink
KOGITO-8778: Set http connector as default for data-index-ephemeral i…
Browse files Browse the repository at this point in the history
…mage (#1453) (#1454)

Co-authored-by: nmirasch <[email protected]>
  • Loading branch information
github-actions[bot] and nmirasch authored Mar 3, 2023
1 parent 3176b8e commit b5bf5a6
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 6 deletions.
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[KOGITO-8526](https://issues.redhat.com/browse/KOGITO-8526) - Add quarkus profile 'kafka-events-support' to data index images by default

## Bug Fixes
- [KOGITO-8778](https://issues.redhat.com/browse/KOGITO-8778) - Modify data-index-ephemeral image to set http connector as default

## Known Issues

4 changes: 4 additions & 0 deletions kogito-data-index-ephemeral-overrides.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ envs:
- name: "SCRIPT_DEBUG"
example: "true"
description: "If set to true, ensures that the bash scripts are executed with the -x option, printing the commands and their arguments as they are executed. Also debug JVM initialization."
- name: "KOGITO_DATA_INDEX_QUARKUS_PROFILE"
value: "http-events-support"
description: "Allows to change the event connection type. The possible values are :`kafka-events-support` or `http-events-support`(default)"

ports:
- value: 8080

Expand Down
6 changes: 0 additions & 6 deletions tests/features/data-index/kogito-data-index-common.feature
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ Feature: Kogito-data-index common feature.
| SCRIPT_DEBUG | true |
Then container log should contain -Djava.library.path=/home/kogito/lib -Dquarkus.http.host=0.0.0.0 -Dquarkus.http.port=8080

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

Scenario: check if a provided data index quarkus profile is correctly set on data index
When container is started with env
| variable | value |
Expand Down
5 changes: 5 additions & 0 deletions tests/features/data-index/kogito-data-index-ephemeral.feature
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@ Feature: Kogito-data-index ephemeral postgresql feature.
And container log should contain Embedded Postgres started at port
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=http-events-support
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,8 @@ Feature: Kogito-data-index infinispan feature.
And container log should contain QUARKUS_INFINISPAN_CLIENT_AUTH_REALM=SecretReal
And container log should contain QUARKUS_INFINISPAN_CLIENT_SASL_MECHANISM=COOLGSSAPI

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
5 changes: 5 additions & 0 deletions tests/features/data-index/kogito-data-index-mongodb.feature
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,8 @@ Feature: Kogito-data-index mongodb feature.
And container log should contain QUARKUS_MONGODB_CREDENTIALS_AUTH_PASSWORD=SecretRealm
And container log should contain QUARKUS_MONGODB_CREDENTIALS_AUTH_MECHANISM=MONGODB-X509

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
6 changes: 6 additions & 0 deletions tests/features/data-index/kogito-data-index-oracle.feature
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@ Feature: Kogito-data-index oracle feature.
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 Datasource '<default>': IO Error: The Network Adapter could not establish the connection
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
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@ Feature: Kogito-data-index postgresql feature.
And the image should contain label io.k8s.display-name with value Kogito Data Index Service - PostgreSQL
And the image should contain label io.openshift.tags with value kogito,data-index,data-index-postgresql

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

0 comments on commit b5bf5a6

Please sign in to comment.