Skip to content

Commit

Permalink
Merge pull request #14 from jakubschwan/9.99.x-prod
Browse files Browse the repository at this point in the history
[9.99.x-prod] Add logic behave test annotations back to mid-stream repo after depre…
  • Loading branch information
rgdoliveira authored Feb 21, 2024
2 parents 487fdf2 + 2e2be3c commit c592e82
Show file tree
Hide file tree
Showing 11 changed files with 56 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/features/common-custom-truststore.feature
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
@quay.io/kiegroup/kogito-jit-runner
@quay.io/kiegroup/kogito-jobs-service-ephemeral
@quay.io/kiegroup/kogito-jobs-service-postgresql
@openshift-serverless-1-tech-preview/logic-data-index-ephemeral-rhel8
Feature: Common tests for Custom TrustStore configuration
# This test sets an invalid certificate to the container, it fails to start, and if timing is bad cekit hangs on 'Running command ps -C java in container'
# See https://github.com/apache/incubator-kie-kogito-images/issues/1722
Expand Down
1 change: 1 addition & 0 deletions tests/features/common-dynamic-resources.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#@quay.io/kiegroup/kogito-jobs-service-postgresql
#@quay.io/kiegroup/kogito-management-console
#@quay.io/kiegroup/kogito-task-console
#@openshift-serverless-1-tech-preview/logic-data-index-ephemeral-rhel8
Feature: Common tests for Kogito images

Scenario: Verify if the properties were correctly set using DEFAULT MEM RATIO
Expand Down
1 change: 1 addition & 0 deletions tests/features/common.feature
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
@quay.io/kiegroup/kogito-task-console
@quay.io/kiegroup/kogito-swf-builder
@quay.io/kiegroup/kogito-base-builder
@openshift-serverless-1-tech-preview/logic-data-index-ephemeral-rhel8
Feature: Common tests for Kogito images

Scenario: Verify if Kogito user is correctly configured
Expand Down
1 change: 1 addition & 0 deletions tests/features/data-index/kogito-data-index-common.feature
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@quay.io/kiegroup/kogito-data-index-ephemeral
@quay.io/kiegroup/kogito-data-index-postgresql
@openshift-serverless-1-tech-preview/logic-data-index-ephemeral-rhel8
Feature: Kogito-data-index common feature.

Scenario: Verify if the debug is correctly enabled and test default http port
Expand Down
1 change: 1 addition & 0 deletions tests/features/kogito-swf-builder.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@quay.io/kiegroup/kogito-swf-builder
@openshift-serverless-1-tech-preview/logic-swf-builder-rhel8
Feature: Serverless Workflow builder images

Scenario: Verify that the application is built and started correctly
Expand Down
2 changes: 2 additions & 0 deletions tests/features/kogito-swf-common.feature
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@quay.io/kiegroup/kogito-swf-builder
@quay.io/kiegroup/kogito-swf-devmode
@openshift-serverless-1-tech-preview/logic-swf-builder-rhel8
@openshift-serverless-1-tech-preview/logic-swf-devmode-rhel8
Feature: Serverless Workflow images common

Scenario: Verify if the swf and quarkus files are under /home/kogito/.m2/repository
Expand Down
1 change: 1 addition & 0 deletions tests/features/kogito-swf-devmode.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@quay.io/kiegroup/kogito-swf-devmode
@openshift-serverless-1-tech-preview/logic-swf-devmode-rhel8
Feature: Serverless Workflow devmode images

Scenario: Verify if container starts in devmode by default
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
@openshift-serverless-1-tech-preview/logic-data-index-ephemeral-rhel8
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 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
And the image should contain label com.redhat.component with value openshift-serverless-1-logic-data-index-ephemeral-rhel8-container

Scenario: verify if of logic-data-index-ephemeral-rhel8 container is correctly started
When container is started with env
| variable | value |
| 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 -jar /home/kogito/bin/quarkus-app/quarkus-run.jar
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
@@ -0,0 +1,11 @@
@openshift-serverless-1-tech-preview/logic-swf-builder-rhel8
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 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
And the image should contain label com.redhat.component with value openshift-serverless-1-logic-swf-builder-rhel8-container
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@openshift-serverless-1-tech-preview/logic-swf-devmode-rhel8
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 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
And the image should contain label com.redhat.component with value openshift-serverless-1-logic-swf-devmode-rhel8-container
1 change: 1 addition & 0 deletions tests/features/supporting-services-common.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
@quay.io/kiegroup/kogito-data-index-ephemeral
@quay.io/kiegroup/kogito-data-index-postgresql
@quay.io/kiegroup/kogito-jit-runner
@openshift-serverless-1-tech-preview/logic-data-index-ephemeral-rhel8
Feature: kogito supporting services common feature

Scenario: Verify if the application jar exists
Expand Down

0 comments on commit c592e82

Please sign in to comment.