forked from apache/incubator-kie-kogito-images
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BAQE-2901: Add jobs-service and data-index to OSL testing
- Loading branch information
Showing
6 changed files
with
72 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ Feature: logic-data-index-ephemeral-rhel8 feature | |
Scenario: verify if all labels are correctly set on logic-data-index-ephemeral-rhel8 image | ||
Given image is built | ||
Then the image should contain label io.openshift.expose-services with value 8080:http | ||
And the image should contain label maintainer with value Apache KIE <[email protected]> | ||
And the image should contain label maintainer with value serverless-logic <[email protected]> | ||
And the image should contain label io.k8s.description with value Red Hat build of Runtime image for Kogito Data Index Service for ephemeral PostgreSQL persistence provider | ||
And the image should contain label io.k8s.display-name with value Red Hat build of Kogito Data Index Service - ephemeral PostgreSQL | ||
And the image should contain label io.openshift.tags with value logic-data-index,kogito,data-index,data-index-ephemeral | ||
|
16 changes: 16 additions & 0 deletions
16
tests/features/openshift-serverless-logic/logic-data-index-postgresql.feature
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,16 @@ | ||
@openshift-serverless-1/logic-data-index-postgresql-rhel8 | ||
Feature: logic-data-index-postgresql postgresql feature. | ||
|
||
Scenario: verify if all labels are correctly set on logic-data-index-postgresql image | ||
Given image is built | ||
Then the image should contain label maintainer with value serverless-logic <[email protected]> | ||
And the image should contain label io.openshift.expose-services with value 8080:http | ||
And the image should contain label io.k8s.description with value Red Hat build of Runtime image for Kogito Data Index Service for PostgreSQL persistence provider | ||
And the image should contain label io.k8s.display-name with value Red Hat build of Kogito Data Index Service - PostgreSQL | ||
And the image should contain label io.openshift.tags with value logic-data-index,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 |
30 changes: 30 additions & 0 deletions
30
tests/features/openshift-serverless-logic/logic-jobs-service-postgresql.feature
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,30 @@ | ||
@openshift-serverless-1/logic-jobs-service-postgresql-rhel8 | ||
Feature: logic-jobs-service-postgresql feature. | ||
|
||
Scenario: verify if all labels are correctly set kogito-jobs-service image image | ||
Given image is built | ||
Then the image should contain label maintainer with value serverless-logic <[email protected]> | ||
And the image should contain label io.openshift.expose-services with value 8080:http | ||
And the image should contain label io.k8s.description with value Red Hat build of Runtime image for Kogito Jobs Service based on Postgresql | ||
And the image should contain label io.k8s.display-name with value Red Hat build of Kogito Jobs Service based on Postgresql | ||
And the image should contain label io.openshift.tags with value logic-jobs-service,kogito,jobs-service-postgresql | ||
|
||
Scenario: Verify if the application jar exists | ||
When container is started with command bash | ||
Then run sh -c 'ls /home/kogito/bin/postgresql/quarkus-app/quarkus-run.jar' in container and immediately check its output for /home/kogito/bin/postgresql/quarkus-app/quarkus-run.jar | ||
|
||
Scenario: verify if container starts as expected | ||
When container is started with env | ||
| variable | value | | ||
| SCRIPT_DEBUG | true | | ||
| QUARKUS_LOG_LEVEL | DEBUG | | ||
| QUARKUS_DATASOURCE_DB_KIND | postgresql | | ||
| QUARKUS_DATASOURCE_USERNAME | test | | ||
| 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 |
23 changes: 23 additions & 0 deletions
23
tests/features/openshift-serverless-logic/logic-jobs-service.ephemeral.feature
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,23 @@ | ||
@openshift-serverless-1/logic-jobs-service-ephemeral-rhel8 | ||
Feature: logic-jobs-service-ephemeral feature. | ||
|
||
Scenario: verify if all labels are correctly set logic-jobs-service-ephemeral image | ||
Given image is built | ||
Then the image should contain label maintainer with value serverless-logic <[email protected]> | ||
And the image should contain label io.openshift.expose-services with value 8080:http | ||
And the image should contain label io.k8s.description with value Red Hat build of Runtime image for Kogito in memory Jobs Service | ||
And the image should contain label io.k8s.display-name with value Red Hat build of Kogito in memory Jobs Service | ||
And the image should contain label io.openshift.tags with value logic-jobs-service,kogito,jobs-service-ephemeral | ||
|
||
Scenario: Verify if the application jar exists | ||
When container is started with command bash | ||
Then run sh -c 'ls /home/kogito/bin/ephemeral/quarkus-app/quarkus-run.jar' in container and immediately check its output for /home/kogito/bin/ephemeral/quarkus-app/quarkus-run.jar | ||
|
||
Scenario: Verify if the debug is correctly enabled with the ephemeral jar | ||
When container is started with env | ||
| variable | value | | ||
| SCRIPT_DEBUG | true | | ||
Then container log should contain -Dquarkus.http.host=0.0.0.0 -Dquarkus.http.port=8080 -jar /home/kogito/bin/ephemeral/quarkus-app/quarkus-run.jar | ||
And container log should contain started in | ||
And container log should not contain Application failed to start | ||
|
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ Feature: logic-swf-builder-rhel8 feature | |
Scenario: verify if all labels are correctly set on logic-swf-builder-rhel8 image | ||
Given image is built | ||
Then the image should contain label io.openshift.expose-services with value 8080:http | ||
And the image should contain label maintainer with value Apache KIE <[email protected]> | ||
And the image should contain label maintainer with value serverless-logic <[email protected]> | ||
And the image should contain label io.k8s.description with value Red Hat build of Runtime image for Kogito Serverless Workflow builder with Quarkus extensions libraries preinstalled | ||
And the image should contain label io.k8s.display-name with value Red Hat OpenShift Serverless Logic Builder image | ||
And the image should contain label io.openshift.tags with value logic-swf-builder,kogito,swf-builder | ||
|
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ Feature: logic-swf-devmode-rhel8 feature | |
Scenario: verify if all labels are correctly set on logic-swf-devmode-rhel8 image | ||
Given image is built | ||
Then the image should contain label io.openshift.expose-services with value 8080:http,5005:http | ||
And the image should contain label maintainer with value Apache KIE <[email protected]> | ||
And the image should contain label maintainer with value serverless-logic <[email protected]> | ||
And the image should contain label io.k8s.description with value Red Hat build of Kogito Serverless Workflow development mode image with Quarkus extensions libraries preinstalled. | ||
And the image should contain label io.k8s.display-name with value Red Hat OpenShift Serverless Logic SWF Devmode | ||
And the image should contain label io.openshift.tags with value logic,devmode,kogito,kogito,development,serverless,workflow | ||
|