This is an automated email from the ASF dual-hosted git repository.
tiagobento pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git
The following commit(s) were added to refs/heads/main by this push:
new 6472039539b NO-ISSUE: Replace Cekit Behave 'serve pages' with 'curl'
(#3225)
6472039539b is described below
commit 6472039539b368462caab920de39a34a3fe53e6d
Author: Ricardo Zanini <[email protected]>
AuthorDate: Thu Aug 14 11:59:04 2025 -0400
NO-ISSUE: Replace Cekit Behave 'serve pages' with 'curl' (#3225)
---
.../kogito-data-index-ephemeral-image/package.json | 8 +-
.../package.json | 8 +-
.../test-resources/tests/features/jitdmn.json | 4 +
.../tests/features/kogito-jit-runner.feature | 13 +--
.../package.json | 8 +-
.../package.json | 8 +-
packages/sonataflow-builder-image/package.json | 4 +-
.../tests/features/sonataflow-builder.feature | 25 ++----
packages/sonataflow-devmode-image/package.json | 4 +-
.../tests/features/sonataflow-devmode-2.feature | 7 --
.../tests/features/sonataflow-devmode.feature | 100 +++++----------------
.../package.json | 4 +-
.../features/sonataflow-management-console.feature | 19 +---
13 files changed, 59 insertions(+), 153 deletions(-)
diff --git a/packages/kogito-data-index-ephemeral-image/package.json
b/packages/kogito-data-index-ephemeral-image/package.json
index a9b9bb43136..24625e73755 100644
--- a/packages/kogito-data-index-ephemeral-image/package.json
+++ b/packages/kogito-data-index-ephemeral-image/package.json
@@ -21,11 +21,11 @@
"copy-test-assets:linux:darwin": "cp -R test-resources/. build",
"format": "prettier --write . --ignore-path=../../.prettierignore
--ignore-path=../../.gitignore",
"image:build": "run-script-os",
- "image:build:darwin:linux": "pnpm setup:env make -C ./build build",
- "image:build:win32": "echo \"Build skipped on Windows\"",
+ "image:build:darwin:win32": "echo \"Build skipped on Mac and Windows\"",
+ "image:build:linux": "pnpm setup:env make -C ./build build",
"image:test": "run-script-if --ignore-errors \"$(build-env
tests.ignoreFailures)\" --bool \"$(build-env endToEndTests.run)\" --then
\"mkdir -p build/target/test/results\" \"run-script-os\" --finally \"mkdir -p
build/target/test/results\" \"cp -R build/target/test/results
dist-tests-e2e/\"",
- "image:test:darwin:linux": "pnpm copy-test-assets && pnpm setup:env make
-C ./build test-image",
- "image:test:win32": "echo \"Tests skipped on Windows\"",
+ "image:test:darwin:win32": "echo \"Tests skipped on Mac and Windows\"",
+ "image:test:linux": "pnpm copy-test-assets && pnpm setup:env make -C
./build test-image",
"install": "node install.js && pnpm format",
"mvn-build-app": "run-script-os",
"mvn-build-app:linux:darwin": "mvn -am package
-Dquarkus.package.type=fast-jar -Dquarkus.container-image.build=false -B -f
./resources/app/pom.xml",
diff --git a/packages/kogito-data-index-postgresql-image/package.json
b/packages/kogito-data-index-postgresql-image/package.json
index 5159e3bdd0e..323115a2d7f 100644
--- a/packages/kogito-data-index-postgresql-image/package.json
+++ b/packages/kogito-data-index-postgresql-image/package.json
@@ -24,12 +24,12 @@
"image:build:darwin:linux": "pnpm setup:env make -C ./build build",
"image:build:win32": "echo \"Build skipped on Windows\"",
"image:test": "run-script-if --ignore-errors \"$(build-env
tests.ignoreFailures)\" --bool \"$(build-env endToEndTests.run)\" --then
\"mkdir -p build/target/test/results\" \"run-script-os\" --finally \"mkdir -p
build/target/test/results\" \"cp -R build/target/test/results
dist-tests-e2e/\"",
- "image:test:darwin:linux": "pnpm copy-test-assets && pnpm setup:env make
-C ./build test-image",
- "image:test:win32": "echo \"Tests skipped on Windows\"",
+ "image:test:darwin:win32": "echo \"Tests skipped on Mac and Windows\"",
+ "image:test:linux": "pnpm copy-test-assets && pnpm setup:env make -C
./build test-image",
"install": "node install.js && pnpm format",
"mvn-build-app": "run-script-os",
- "mvn-build-app:linux:darwin": "mvn -am package
-Dquarkus.package.type=fast-jar -Dquarkus.container-image.build=false -B -f
./resources/app/pom.xml",
- "mvn-build-app:win32": "echo \"Build skipped on Windows\"",
+ "mvn-build-app:darwin:win32": "echo \"Build skipped on Mac and Windows\"",
+ "mvn-build-app:linux": "mvn -am package -Dquarkus.package.type=fast-jar
-Dquarkus.container-image.build=false -B -f ./resources/app/pom.xml",
"setup:env": ". ./node_modules/@kie-tools/python-venv/venv/bin/activate &&
cross-env KOGITO_IMAGE_REGISTRY=$(build-env
kogitoDataIndexPostgresqlImage.registry)
KOGITO_IMAGE_REGISTRY_ACCOUNT=$(build-env
kogitoDataIndexPostgresqlImage.account) KOGITO_IMAGE_NAME=$(build-env
kogitoDataIndexPostgresqlImage.name) KOGITO_IMAGE_TAG=$(build-env
kogitoDataIndexPostgresqlImage.buildTag) QUARKUS_PLATFORM_GROUPID=$(build-env
kogitoImagesCekitModules.quarkusGroupId) QUARKUS_PLATFORM_VERSION=$(buil [...]
},
"dependencies": {
diff --git
a/packages/kogito-jit-runner-image/test-resources/tests/features/jitdmn.json
b/packages/kogito-jit-runner-image/test-resources/tests/features/jitdmn.json
new file mode 100644
index 00000000000..8e1e77008c5
--- /dev/null
+++ b/packages/kogito-jit-runner-image/test-resources/tests/features/jitdmn.json
@@ -0,0 +1,4 @@
+{
+ "context": { "n": 1, "m": 2 },
+ "model": "<dmn:definitions
xmlns:dmn=\"http://www.omg.org/spec/DMN/20180521/MODEL/\"
xmlns=\"https://kiegroup.org/dmn/_35091C3B-6022-4D40-8982-D528940CD5F9\"
xmlns:feel=\"http://www.omg.org/spec/DMN/20180521/FEEL/\"
xmlns:kie=\"http://www.drools.org/kie/dmn/1.2\"
xmlns:dmndi=\"http://www.omg.org/spec/DMN/20180521/DMNDI/\"
xmlns:di=\"http://www.omg.org/spec/DMN/20180521/DI/\"
xmlns:dc=\"http://www.omg.org/spec/DMN/20180521/DC/\"
id=\"_81A31B42-A686-4ED2-81FB-C1F91A95D685\" name=\"new-fi [...]
+}
diff --git
a/packages/kogito-jit-runner-image/test-resources/tests/features/kogito-jit-runner.feature
b/packages/kogito-jit-runner-image/test-resources/tests/features/kogito-jit-runner.feature
index ac96c384a70..637878fcd47 100644
---
a/packages/kogito-jit-runner-image/test-resources/tests/features/kogito-jit-runner.feature
+++
b/packages/kogito-jit-runner-image/test-resources/tests/features/kogito-jit-runner.feature
@@ -38,12 +38,7 @@ Feature: Kogito-jit-runner feature.
When container is started with env
| variable | value |
| SCRIPT_DEBUG | false |
- Then check that page is served
- | property | value
|
- | port | 8080
|
- | path | /jitdmn
|
- | wait | 80
|
- | expected_phrase | {"sum":3,"m":2,"n":1}
|
- | request_method | POST
|
- | content_type | application/json
|
- | request_body | {"context": {"n" : 1, "m" : 2}, "model":
"<dmn:definitions xmlns:dmn=\"http://www.omg.org/spec/DMN/20180521/MODEL/\"
xmlns=\"https://kiegroup.org/dmn/_35091C3B-6022-4D40-8982-D528940CD5F9\"
xmlns:feel=\"http://www.omg.org/spec/DMN/20180521/FEEL/\"
xmlns:kie=\"http://www.drools.org/kie/dmn/1.2\"
xmlns:dmndi=\"http://www.omg.org/spec/DMN/20180521/DMNDI/\"
xmlns:di=\"http://www.omg.org/spec/DMN/20180521/DI/\"
xmlns:dc=\"http://www.omg.org/spec/DMN/20180521/DC/\" id [...]
+ Then container log should match regex Listening on: http://0\.0\.0\.0:8080
+ And copy ../../tests/features/jitdmn.json to /tmp in container
+ And run head -c 200 /tmp/jitdmn.json in container and immediately check
its output contains "model"
+ And run curl -sS -H Content-Type:application/json --request POST
--data-binary @/tmp/jitdmn.json http://127.0.0.1:8080/jitdmn in container and
check its output contains {"sum":3,"m":2,"n":1}
diff --git a/packages/kogito-jobs-service-ephemeral-image/package.json
b/packages/kogito-jobs-service-ephemeral-image/package.json
index 9dfa54f7ea1..dc964a1dc7e 100644
--- a/packages/kogito-jobs-service-ephemeral-image/package.json
+++ b/packages/kogito-jobs-service-ephemeral-image/package.json
@@ -21,11 +21,11 @@
"copy-test-assets:linux:darwin": "cp -R test-resources/. build",
"format": "prettier --write . --ignore-path=../../.prettierignore
--ignore-path=../../.gitignore",
"image:build": "run-script-os",
- "image:build:darwin:linux": "pnpm setup:env make -C ./build build",
- "image:build:win32": "echo \"Build skipped on Windows\"",
+ "image:build:darwin:win32": "echo \"Build skipped on Mac and Windows\"",
+ "image:build:linux": "pnpm setup:env make -C ./build build",
"image:test": "run-script-if --ignore-errors \"$(build-env
tests.ignoreFailures)\" --bool \"$(build-env endToEndTests.run)\" --then
\"mkdir -p build/target/test/results\" \"run-script-os\" --finally \"mkdir -p
build/target/test/results\" \"cp -R build/target/test/results
dist-tests-e2e/\"",
- "image:test:darwin:linux": "pnpm copy-test-assets && pnpm setup:env make
-C ./build test-image",
- "image:test:win32": "echo \"Tests skipped on Windows\"",
+ "image:test:darwin:win32": "echo \"Tests skipped on Mac and Windows\"",
+ "image:test:linux": "pnpm copy-test-assets && pnpm setup:env make -C
./build test-image",
"install": "node install.js && pnpm format",
"mvn-build-app": "run-script-os",
"mvn-build-app:linux:darwin": "mvn -am package
-Dquarkus.package.type=fast-jar -Dquarkus.container-image.build=false -B -f
./resources/app/pom.xml",
diff --git a/packages/kogito-jobs-service-postgresql-image/package.json
b/packages/kogito-jobs-service-postgresql-image/package.json
index 677d8eb088c..7a457480518 100644
--- a/packages/kogito-jobs-service-postgresql-image/package.json
+++ b/packages/kogito-jobs-service-postgresql-image/package.json
@@ -21,11 +21,11 @@
"copy-test-assets:linux:darwin": "cp -R test-resources/. build",
"format": "prettier --write . --ignore-path=../../.prettierignore
--ignore-path=../../.gitignore",
"image:build": "run-script-os",
- "image:build:darwin:linux": "pnpm setup:env make -C ./build build",
- "image:build:win32": "echo \"Build skipped on Windows\"",
+ "image:build:darwin:win32": "echo \"Build skipped on Mac and Windows\"",
+ "image:build:linux": "pnpm setup:env make -C ./build build",
"image:test": "run-script-if --ignore-errors \"$(build-env
tests.ignoreFailures)\" --bool \"$(build-env endToEndTests.run)\" --then
\"mkdir -p build/target/test/results\" \"run-script-os\" --finally \"mkdir -p
build/target/test/results\" \"cp -R build/target/test/results
dist-tests-e2e/\"",
- "image:test:darwin:linux": "pnpm copy-test-assets && pnpm setup:env make
-C ./build test-image",
- "image:test:win32": "echo \"Tests skipped on Windows\"",
+ "image:test:darwin:win32": "echo \"Tests skipped on Mac and Windows\"",
+ "image:test:linux": "pnpm copy-test-assets && pnpm setup:env make -C
./build test-image",
"install": "node install.js && pnpm format",
"mvn-build-app": "run-script-os",
"mvn-build-app:linux:darwin": "mvn -am package
-Dquarkus.package.type=fast-jar -Dquarkus.container-image.build=false -B -f
./resources/app/pom.xml",
diff --git a/packages/sonataflow-builder-image/package.json
b/packages/sonataflow-builder-image/package.json
index 3cbb0d44fc1..8dedaf9210b 100644
--- a/packages/sonataflow-builder-image/package.json
+++ b/packages/sonataflow-builder-image/package.json
@@ -28,8 +28,8 @@
"image:build:darwin:linux": "pnpm setup:env make -C ./build build",
"image:build:win32": "echo \"Build skipped on Windows\"",
"image:test": "run-script-if --ignore-errors \"$(build-env
tests.ignoreFailures)\" --bool \"$(build-env endToEndTests.run)\" --then
\"mkdir -p build/target/test/results\" \"run-script-os\" --finally \"cp -R
build/target/test/results dist-tests-e2e/\"",
- "image:test:darwin:win32": "echo \"Tests skipped on macOS and Windows\"",
- "image:test:linux": "pnpm copy-test-assets && pnpm setup:env make -C
./build test-image",
+ "image:test:linux:darwin": "pnpm copy-test-assets && pnpm setup:env make
-C ./build test-image",
+ "image:test:win32": "echo \"Tests skipped on Windows\"",
"install": "node install.js && pnpm format",
"m2-repo-via-http:container:kill": "(docker container kill
m2-repo-via-http || true) && (docker container rm m2-repo-via-http || true)",
"m2-repo-via-http:container:prepare-m2-repo-volume": "node -e
'require(`@kie-tools/maven-base`).prepareHardLinkedM2ForPackage(`./dist/tmp-m2/repository`,
`.`)'",
diff --git
a/packages/sonataflow-builder-image/test-resources/tests/features/sonataflow-builder.feature
b/packages/sonataflow-builder-image/test-resources/tests/features/sonataflow-builder.feature
index 3b0ac708019..979c5493f30 100644
---
a/packages/sonataflow-builder-image/test-resources/tests/features/sonataflow-builder.feature
+++
b/packages/sonataflow-builder-image/test-resources/tests/features/sonataflow-builder.feature
@@ -22,31 +22,16 @@ Feature: SonataFlow Builder Image Sanity Checks
When container is started with command bash -c
'/home/kogito/launch/build-app.sh && java -jar
target/quarkus-app/quarkus-run.jar'
| variable | value |
| SCRIPT_DEBUG | false |
- Then check that page is served
- | property | value |
- | port | 8080 |
- | path | /q/health/ready |
- | wait | 480 |
- | request_method | GET |
- | expected_status_code | 200 |
- And container log should match regex Installed
features:.*kogito-serverless-workflow
+ Then container log should match regex Installed
features:.*kogito-serverless-workflow
And container log should match regex Installed
features:.*kie-addon-knative-eventing-extension
And container log should match regex Installed features:.*smallrye-health
+ And container log should match regex Listening on: http://0\.0\.0\.0:8080
+ And run curl -fsS -o /dev/null -w %{http_code}
http://127.0.0.1:8080/q/health/ready in container and immediately check its
output contains 200
Scenario: Verify that the application is built and started correctly when
QUARKUS_EXTENSIONS env is used
When container is started with command bash -c
'/home/kogito/launch/build-app.sh && java -jar
target/quarkus-app/quarkus-run.jar'
| variable | value |
| SCRIPT_DEBUG | false |
| QUARKUS_EXTENSIONS | io.quarkus:quarkus-elytron-security-jdbc |
- Then check that page is served
- | property | value |
- | port | 8080 |
- | path | /q/health/ready |
- | wait | 480 |
- | request_method | GET |
- | expected_status_code | 200 |
- And container log should match regex Extension
io\.quarkus:quarkus-elytron-security-jdbc.* has been installed
- And container log should match regex Installed
features:.*kogito-serverless-workflow
- And container log should match regex Installed
features:.*kie-addon-knative-eventing-extension
- And container log should match regex Installed features:.*smallrye-health
- And container log should match regex Installed features:.*security-jdbc
\ No newline at end of file
+ Then container log should match regex Extension
io\.quarkus:quarkus-elytron-security-jdbc.* has been installed
+ And container log should match regex Installed features:.*security-jdbc
diff --git a/packages/sonataflow-devmode-image/package.json
b/packages/sonataflow-devmode-image/package.json
index 906a7db99d4..8c912cdbae3 100644
--- a/packages/sonataflow-devmode-image/package.json
+++ b/packages/sonataflow-devmode-image/package.json
@@ -28,8 +28,8 @@
"image:build:darwin:linux": "pnpm setup:env make -C ./build build",
"image:build:win32": "echo \"Build skipped on Windows\"",
"image:test": "run-script-if --ignore-errors \"$(build-env
tests.ignoreFailures)\" --bool \"$(build-env endToEndTests.run)\" --then
\"mkdir -p build/target/test/results\" \"run-script-os\" --finally \"cp -R
build/target/test/results dist-tests-e2e/\"",
- "image:test:darwin:win32": "echo \"Tests skipped on macOS and Windows\"",
- "image:test:linux": "pnpm copy-test-assets && pnpm setup:env make -C
./build test-image",
+ "image:test:darwin:linux": "pnpm copy-test-assets && pnpm setup:env make
-C ./build test-image",
+ "image:test:win32": "echo \"Tests skipped on Windows\"",
"install": "node install.js && pnpm format",
"m2-repo-via-http:container:kill": "(docker container kill
m2-repo-via-http || true) && (docker container rm m2-repo-via-http || true)",
"m2-repo-via-http:container:prepare-m2-repo-volume": "node -e
'require(`@kie-tools/maven-base`).prepareHardLinkedM2ForPackage(`./dist/tmp-m2/repository`,
`./node_modules/@kie-tools/sonataflow-quarkus-devui`)'",
diff --git
a/packages/sonataflow-devmode-image/test-resources/tests/features/sonataflow-devmode-2.feature
b/packages/sonataflow-devmode-image/test-resources/tests/features/sonataflow-devmode-2.feature
index e6359d75340..d6d0d9e2297 100644
---
a/packages/sonataflow-devmode-image/test-resources/tests/features/sonataflow-devmode-2.feature
+++
b/packages/sonataflow-devmode-image/test-resources/tests/features/sonataflow-devmode-2.feature
@@ -5,10 +5,3 @@ Feature: Serverless Workflow images common
When container is started with command bash
Then file /home/kogito/.m2/repository/io/quarkus/platform/quarkus-bom
should exist and be a directory
And file
/home/kogito/.m2/repository/org/apache/kie/sonataflow/sonataflow-quarkus/
should exist and be a directory
-
- # This check should be enabled again once a similar check is done on runtimes
- # to make sure we only have one version of quarkus bom ...
- # See https://issues.redhat.com/browse/KOGITO-8555 to enable again
- # Scenario: verify if there is no dependencies with multiple versions in
/home/kogito/.m2/repository
- # When container is started with command bash
- # Then run sh -c 'ls /home/kogito/.m2/repository/io/quarkus/quarkus-bom |
wc -l' in container and immediately check its output for 1
diff --git
a/packages/sonataflow-devmode-image/test-resources/tests/features/sonataflow-devmode.feature
b/packages/sonataflow-devmode-image/test-resources/tests/features/sonataflow-devmode.feature
index d85ff278a8f..48956c0c5d1 100644
---
a/packages/sonataflow-devmode-image/test-resources/tests/features/sonataflow-devmode.feature
+++
b/packages/sonataflow-devmode-image/test-resources/tests/features/sonataflow-devmode.feature
@@ -5,48 +5,31 @@ Feature: Serverless Workflow devmode images
When container is started with env
| variable | value |
| SCRIPT_DEBUG | false |
- Then check that page is served
- | property | value |
- | port | 8080 |
- | path | /q/health/ready |
- | wait | 480 |
- | request_method | GET |
- | expected_status_code | 200 |
- And container log should match regex Installed
features:.*kogito-serverless-workflow
+ Then container log should match regex Installed
features:.*kogito-serverless-workflow
And container log should match regex Installed
features:.*kie-addon-knative-eventing-extension
And container log should match regex Installed features:.*smallrye-health
And container log should match regex Installed
features:.*sonataflow-quarkus-devui
And container log should match regex Installed
features:.*kie-addon-source-files-extension
And container log should match regex Installed
features:.*kogito-addons-quarkus-jobs-service-embedded
And container log should match regex Installed
features:.*kogito-addons-quarkus-data-index-inmemory
+ And container log should match regex Listening on: http://0\.0\.0\.0:8080
+ And run curl -fsS -o /dev/null -w %{http_code}
http://127.0.0.1:8080/q/health/ready in container and immediately check its
output contains 200
Scenario: Verify if container starts correctly when continuous testing is
enabled
When container is started with env
| variable | value |
| SCRIPT_DEBUG | false |
| QUARKUS_CONTINUOUS_TESTING | enabled |
- Then check that page is served
- | property | value |
- | port | 8080 |
- | path | /q/health/ready |
- | wait | 480 |
- | request_method | GET |
- | expected_status_code | 200 |
- And container log should contain -Dquarkus.test.continuous-testing=enabled
+ Then container log should contain -Dquarkus.test.continuous-testing=enabled
+ And container log should match regex Listening on: http://0\.0\.0\.0:8080
+ And run curl -fsS -o /dev/null -w %{http_code}
http://127.0.0.1:8080/q/health/ready in container and immediately check its
output contains 200
Scenario: Verify if container starts correctly when QUARKUS_EXTENSIONS env
is used
When container is started with env
| variable | value |
| SCRIPT_DEBUG | false
|
| QUARKUS_EXTENSIONS | io.quarkus:quarkus-elytron-security-jdbc |
- Then check that page is served
- | property | value |
- | port | 8080 |
- | path | /q/health/ready |
- | wait | 960 |
- | request_method | GET |
- | expected_status_code | 200 |
- And container log should match regex Extension
io\.quarkus:quarkus-elytron-security-jdbc.* has been installed
+ Then container log should match regex Extension
io\.quarkus:quarkus-elytron-security-jdbc.* has been installed
And container log should match regex Installed
features:.*kogito-serverless-workflow
And container log should match regex Installed
features:.*kie-addon-knative-eventing-extension
And container log should match regex Installed features:.*smallrye-health
@@ -55,82 +38,43 @@ Feature: Serverless Workflow devmode images
And container log should match regex Installed
features:.*kogito-addons-quarkus-jobs-service-embedded
And container log should match regex Installed
features:.*kogito-addons-quarkus-data-index-inmemory
And container log should match regex Installed features:.*security-jdbc
+ And container log should match regex Listening on: http://0\.0\.0\.0:8080
+ Then run curl -fsS -o /dev/null -w %{http_code}
http://127.0.0.1:8080/q/health/ready in container and immediately check its
output contains 200
Scenario: verify that the embedded jobs-service is running
When container is started with env
| variable | value |
| QUARKUS_DEVSERVICES_ENABLED | false |
- Then check that page is served
- | property | value |
- | port | 8080 |
- | path | /q/health/ready |
- | wait | 480 |
- | request_method | GET |
- | expected_status_code | 200 |
- And container log should contain Embedded Postgres started at port
+ Then container log should contain Embedded Postgres started at port
And container log should contain SET Leader
- And check that page is served
- | property | value |
- | port | 8080 |
- | path | /v2/jobs/1234 |
- | wait | 480 |
- | request_method | GET |
- | expected_status_code | 404 |
- | expected_phrase | Job not found |
+ And container log should match regex Listening on: http://0\.0\.0\.0:8080
+ And run curl -fsS -o /dev/null -w %{http_code}
http://127.0.0.1:8080/q/health/ready in container and immediately check its
output contains 200
+ And run curl -sS -o /dev/null -w %{http_code}
http://127.0.0.1:8080/v2/jobs/1234 in container and immediately check its
output contains 404
Scenario: verify that the embedded data-index service is running
When container is started with env
| variable | value |
| QUARKUS_DEVSERVICES_ENABLED | false |
- Then check that page is served
- | property | value |
- | port | 8080 |
- | path | /q/health/ready |
- | request_method | GET |
- | wait | 480 |
- | expected_status_code | 200 |
- And container log should contain Embedded Postgres started at port
- And check that page is served
- | property | value |
- | port | 8080 |
- | path | /graphql |
- | request_method | POST |
- | request_body | { "query": "{ProcessInstances{ id } }" } |
- | wait | 480 |
- | expected_status_code | 200 |
- | expected_phrase | {"data":{"ProcessInstances":[]}} |
+ Then container log should contain Embedded Postgres started at port
+ And container log should match regex Listening on: http://0\.0\.0\.0:8080
+ And run curl -fsS
http://127.0.0.1:8080/graphql?query=%7BProcessInstances%7Bid%7D%7D in container
and check its output contains {"data":{"ProcessInstances":[]}}
+ And run curl -fsS -o /dev/null -w %{http_code}
http://127.0.0.1:8080/q/health/ready in container and immediately check its
output contains 200
Scenario: verify that the serverless workflow devui is running
When container is started with env
| variable | value |
| QUARKUS_DEVSERVICES_ENABLED | false |
- Then check that page is served
- | property | value
|
- | port | 8080
|
- | path |
/q/dev-ui/org.kie.kogito-addons-quarkus-data-index-inmemory/dataindex |
- | request_method | GET
|
- | wait | 480
|
- | expected_status_code | 403
|
- And check that page is served
- | property | value
|
- | port | 8080
|
- | path |
/q/dev-ui/org.apache.kie.sonataflow.sonataflow-quarkus-devui/workflows |
- | request_method | GET
|
- | wait | 480
|
- | expected_status_code | 403
|
+ Then container log should match regex Listening on: http://0\.0\.0\.0:8080
+ And run curl -fsS -o /dev/null -w %{http_code}
http://127.0.0.1:8080/q/dev-ui/org.kie.kogito-addons-quarkus-data-index-inmemory/dataindex
in container and immediately check its output contains 200
+ And run curl -fsS -o /dev/null -w %{http_code}
http://127.0.0.1:8080/q/dev-ui/org.apache.kie.sonataflow.sonataflow-quarkus-devui/workflows
in container and immediately check its output contains 200
Scenario: Verify if container starts in devmode with service discovery
enabled
When container is started with env
| variable | value |
| QUARKUS_DEVSERVICES_ENABLED | false |
- Then check that page is served
- | property | value |
- | port | 8080 |
- | path | /q/health/ready |
- | wait | 480 |
- | request_method | GET |
- | expected_status_code | 200 |
+ Then container log should match regex Listening on: http://0\.0\.0\.0:8080
And container log should contain
kogito-addon-microprofile-config-service-catalog-extension
+ And run curl -fsS -o /dev/null -w %{http_code}
http://127.0.0.1:8080/q/health/ready in container and immediately check its
output contains 200
Scenario: Verify if container have the KOGITO_CODEGEN_PROCESS_FAILONERROR
env set to false
When container is started with command bash
diff --git a/packages/sonataflow-management-console-image/package.json
b/packages/sonataflow-management-console-image/package.json
index 6b19766ba18..3055b7812f9 100644
--- a/packages/sonataflow-management-console-image/package.json
+++ b/packages/sonataflow-management-console-image/package.json
@@ -27,12 +27,12 @@
"copy:webapp-assets:win32": "pnpm powershell \"Copy-Item -R
./node_modules/@kie-tools/sonataflow-management-console-webapp/dist/
./dist-dev/sonataflow-management-console-webapp\"",
"env-json:schema:generate": "ts-json-schema-generator --tsconfig
./node_modules/@kie-tools/sonataflow-management-console-webapp/tsconfig.json
--path
./node_modules/@kie-tools/sonataflow-management-console-webapp/src/env/EnvJson.ts
--type EnvJson --id EnvJson --out ./dist-dev/EnvJson.schema.json",
"image:cekit:build": "run-script-os",
+ "image:cekit:build:darwin:win32": "echo \"Build skipped on Mac and
Windows\"",
"image:cekit:build:linux": "pnpm image:cekit:copy && pnpm
image:cekit:setup:env make -C ./dist-dev build",
- "image:cekit:build:win32:darwin": "echo \"Build skipped on macOS and
Windows\"",
"image:cekit:copy": "cp -R
./node_modules/@kie-tools/sonataflow-image-common/dist/* ./dist-dev/ && cp -R
resources/* ./dist-dev/",
"image:cekit:setup:env": ".
./node_modules/@kie-tools/python-venv/venv/bin/activate && cross-env
KOGITO_IMAGE_REGISTRY=$(build-env sonataflowManagementConsoleImageEnv.registry)
KOGITO_IMAGE_REGISTRY_ACCOUNT=$(build-env
sonataflowManagementConsoleImageEnv.account) KOGITO_IMAGE_NAME=$(build-env
sonataflowManagementConsoleImageEnv.name) KOGITO_IMAGE_TAG=$(build-env
sonataflowManagementConsoleImageEnv.buildTag)
QUARKUS_PLATFORM_GROUPID=$(build-env kogitoImagesCekitModules.quarkusGroupId)
[...]
"image:test": "run-script-if --ignore-errors \"$(build-env
tests.ignoreFailures)\" --bool \"$(build-env endToEndTests.run)\" --then
\"mkdir -p dist-dev/target/test/results\" \"run-script-os\" --finally \"cp -R
dist-dev/target/test/results dist-tests-e2e/\"",
- "image:test:darwin:win32": "echo \"Tests skipped on macOS and Windows\"",
+ "image:test:darwin:win32": "echo \"Tests skipped on Mac and Windows\"",
"image:test:linux": "pnpm copy:test-assets && pnpm start-server-and-test
start:sonataflow-dev-app http-get://0.0.0.0:4000/graphql 'pnpm
image:cekit:setup:env make -C ./dist-dev test-image'",
"start:sonataflow-dev-app": "SONATAFLOW_DEV_APP_DELAY=0 npm --prefix
./node_modules/@kie-tools/sonataflow-dev-app run start"
},
diff --git
a/packages/sonataflow-management-console-image/test-resources/tests/features/sonataflow-management-console.feature
b/packages/sonataflow-management-console-image/test-resources/tests/features/sonataflow-management-console.feature
index bf01ccbe90b..beac5df1fe7 100644
---
a/packages/sonataflow-management-console-image/test-resources/tests/features/sonataflow-management-console.feature
+++
b/packages/sonataflow-management-console-image/test-resources/tests/features/sonataflow-management-console.feature
@@ -4,13 +4,7 @@ Feature: Serverless Workflow Management Console images
Scenario: verify that the home page is served
When container is ready
Then container log should contain httpd -D FOREGROUND
- Then check that page is served
- | property | value |
- | port | 8080 |
- | path | / |
- | request_method | GET |
- | wait | 480 |
- | expected_status_code | 200 |
+ And run curl -fsS -o /dev/null -w %{http_code} http://127.0.0.1:8080/ in
container and immediately check its output contains 200
Scenario: Verify that the rewrite rule for /graphql is in httpd.conf
When container is ready
@@ -23,13 +17,4 @@ Feature: Serverless Workflow Management Console images
| variable | value
|
| SONATAFLOW_MANAGEMENT_CONSOLE_DATA_INDEX_ENDPOINT |
http://${DOCKER_HOST}:4000/graphql |
Then container log should contain httpd -D FOREGROUND
- Then check that page is served
- | property | value |
- | port | 8080 |
- | path | /graphql |
- | request_method | POST |
- | request_body | { "query": "{ProcessInstances{ id } }" } |
- | content_type | application/json |
- | wait | 480 |
- | expected_status_code | 200 |
- | expected_phrase | "data":{"ProcessInstances |
+ And run curl -X POST -sS -H Content-Type:application/json --data-binary
'{"query":"{ProcessInstances{id}}"}' http://127.0.0.1:8080/graphql in container
and check its output contains "data":{"ProcessInstances"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]