Skip to content

Commit

Permalink
BAQE-2901: Add jobs-service and data-index to OSL testing
Browse files Browse the repository at this point in the history
  • Loading branch information
domhanak committed May 27, 2024
1 parent a079833 commit 0e837d2
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
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
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
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

Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0e837d2

Please sign in to comment.