diff --git a/.github/actions/setup-env/action.yml b/.github/actions/setup-env/action.yml
index 5aa4e6f2031..8650d034673 100644
--- a/.github/actions/setup-env/action.yml
+++ b/.github/actions/setup-env/action.yml
@@ -236,6 +236,25 @@ runs:
gir1.2-appindicator3-0.1
fi
+ - name: "Setup xmllint (Ubuntu Only)"
+ shell: bash
+ run: |
+ echo "STEP: Setup xmllint library (Ubuntu Only)"
+ cd ${{ inputs.working_dir }}
+ if [ "${{ runner.os }}" == "Linux" ]; then
+ sudo apt-get install -y \
+ libxml2-utils > /dev/null 2>&1
+ fi
+
+ - name: "Update bash for macOS (macOS Only)"
+ shell: bash
+ if: runner.os == 'macOS'
+ run: |
+ echo "STEP: Update bash for macOS (macOS Only)"
+ brew update
+ brew install bash
+ echo "/usr/local/bin" >> $GITHUB_PATH
+
- name: "Print storage usage (after setup)"
shell: bash
run: |
diff --git a/.github/supporting-files/ci/partitions/partition1.txt b/.github/supporting-files/ci/partitions/partition1.txt
index 1a2f8fcae14..fbbd1566205 100644
--- a/.github/supporting-files/ci/partitions/partition1.txt
+++ b/.github/supporting-files/ci/partitions/partition1.txt
@@ -9,4 +9,6 @@ chrome-extension-serverless-workflow-editor
vscode-extension-dashbuilder-editor
yard-vscode-extension
swf-vscode-extension
-@kie-tools/sonataflow-management-console-image
\ No newline at end of file
+@kie-tools/sonataflow-management-console-image
+@kie/kogito-jit-runner-image
+@kie/kogito-jobs-service-allinone-image
\ No newline at end of file
diff --git a/README.md b/README.md
index e0ec6ec186d..052e4d56144 100644
--- a/README.md
+++ b/README.md
@@ -53,6 +53,8 @@ To build and test all packages of the Apache KIE Tools project, you're going to
- Python `3.12` _(To install, follow these instructions: https://www.python.org/downloads/)_
- Helm `3.13.3` _(To install, follow these instructions: https://helm.sh/docs/intro/install/)_
- Make
+- xmllint _(To install, follow these instructions: https://www.baeldung.com/linux/xmllint)_
+- bash `5.x` _(On Linux or Nix you should be fine. On macOS, follow these instructions to use zsh: https://support.apple.com/102360)_
> **ℹ️ NOTE**
>
diff --git a/devbox.json b/devbox.json
index bd6d1bf34f2..e76efd9adf3 100644
--- a/devbox.json
+++ b/devbox.json
@@ -7,7 +7,8 @@
"kubernetes-helm": "3.13.3",
"gnumake": "4.4.1",
"go": "1.21.9",
- "python": "3.12.2"
+ "python": "3.12.2",
+ "libxml2": "2.13.3"
},
"env": {
"PLAYWRIGHT_BROWSERS_PATH": "0",
diff --git a/devbox.lock b/devbox.lock
index 810e96da462..d947b47e1cf 100644
--- a/devbox.lock
+++ b/devbox.lock
@@ -189,6 +189,110 @@
}
}
},
+ "libxml2@2.13.3": {
+ "last_modified": "2024-09-12T11:58:09Z",
+ "resolved": "github:NixOS/nixpkgs/280db3decab4cbeb22a4599bd472229ab74d25e1#libxml2",
+ "source": "devbox-search",
+ "version": "2.13.3",
+ "systems": {
+ "aarch64-darwin": {
+ "outputs": [
+ {
+ "name": "bin",
+ "path": "/nix/store/7gi1kd2mz9jc8ya4lkqhlv9vklc5qr2j-libxml2-2.13.3-bin",
+ "default": true
+ },
+ {
+ "name": "dev",
+ "path": "/nix/store/mnij865rdzrrnxqmhj4s0abmd1xx771v-libxml2-2.13.3-dev"
+ },
+ {
+ "name": "devdoc",
+ "path": "/nix/store/80bkizndgvrqiq42ig681irxswsf4kxv-libxml2-2.13.3-devdoc"
+ },
+ {
+ "name": "out",
+ "path": "/nix/store/sr8lnkgivqcd06113nsk5p3jz2xcx7rp-libxml2-2.13.3"
+ }
+ ],
+ "store_path": "/nix/store/7gi1kd2mz9jc8ya4lkqhlv9vklc5qr2j-libxml2-2.13.3-bin"
+ },
+ "aarch64-linux": {
+ "outputs": [
+ {
+ "name": "bin",
+ "path": "/nix/store/gxpp5r2nbs3s0n5rw0jbnm1k5lhxrx13-libxml2-2.13.3-bin",
+ "default": true
+ },
+ {
+ "name": "devdoc",
+ "path": "/nix/store/0qnymx6l3c7998yscwvr1q64iz447hfc-libxml2-2.13.3-devdoc"
+ },
+ {
+ "name": "out",
+ "path": "/nix/store/da857dg9ip02lkci5nicgvkzf419jzc7-libxml2-2.13.3"
+ },
+ {
+ "name": "py",
+ "path": "/nix/store/qfpnqradhvhicl1hm70w7891bk95lkad-libxml2-2.13.3-py"
+ },
+ {
+ "name": "dev",
+ "path": "/nix/store/dph7mh2dhl8sl4i44wlgnmsrwdlcv0bc-libxml2-2.13.3-dev"
+ }
+ ],
+ "store_path": "/nix/store/gxpp5r2nbs3s0n5rw0jbnm1k5lhxrx13-libxml2-2.13.3-bin"
+ },
+ "x86_64-darwin": {
+ "outputs": [
+ {
+ "name": "bin",
+ "path": "/nix/store/gg4x2l8wy3lkd94bxpl0z7gnn9pa365i-libxml2-2.13.3-bin",
+ "default": true
+ },
+ {
+ "name": "dev",
+ "path": "/nix/store/pzakdvnmm99gic3mqyg8375b08dvkqxm-libxml2-2.13.3-dev"
+ },
+ {
+ "name": "devdoc",
+ "path": "/nix/store/xa27lhlrc2ya3i67g7nz53g64l3wqvjw-libxml2-2.13.3-devdoc"
+ },
+ {
+ "name": "out",
+ "path": "/nix/store/ac73mddfvraxgvd816r9h57df35mm6gd-libxml2-2.13.3"
+ }
+ ],
+ "store_path": "/nix/store/gg4x2l8wy3lkd94bxpl0z7gnn9pa365i-libxml2-2.13.3-bin"
+ },
+ "x86_64-linux": {
+ "outputs": [
+ {
+ "name": "bin",
+ "path": "/nix/store/2y4a178s4w60v4m8749xhaawf8ga7cw5-libxml2-2.13.3-bin",
+ "default": true
+ },
+ {
+ "name": "dev",
+ "path": "/nix/store/v40g7q9zix1ycpyara08brd50m00471n-libxml2-2.13.3-dev"
+ },
+ {
+ "name": "devdoc",
+ "path": "/nix/store/cs49b70qkgygx0wxcl04dpy1d1g5vb91-libxml2-2.13.3-devdoc"
+ },
+ {
+ "name": "out",
+ "path": "/nix/store/nr8mh99sfsb1gw1b1qmrwhzmxbhj84j7-libxml2-2.13.3"
+ },
+ {
+ "name": "py",
+ "path": "/nix/store/p17nrcsmvb0q7b9g6347imljapbfcsb1-libxml2-2.13.3-py"
+ }
+ ],
+ "store_path": "/nix/store/2y4a178s4w60v4m8749xhaawf8ga7cw5-libxml2-2.13.3-bin"
+ }
+ }
+ },
"maven@3.9.6": {
"last_modified": "2024-03-22T11:26:23Z",
"resolved": "github:NixOS/nixpkgs/a3ed7406349a9335cb4c2a71369b697cecd9d351#maven",
diff --git a/packages/sonataflow-image-common/package.json b/packages/sonataflow-image-common/package.json
index fa075f37ab8..2a307a83e2d 100644
--- a/packages/sonataflow-image-common/package.json
+++ b/packages/sonataflow-image-common/package.json
@@ -13,10 +13,10 @@
"url": "https://github.com/apache/incubator-kie-tools/issues"
},
"scripts": {
- "build:prod": "run-script-if --bool \"$(build-env tests.run)\" --then \"pnpm test\"",
+ "build:prod": "pnpm test",
"install": "node install.js",
"test": "run-script-os",
- "test:linux:darwin": "mkdir -p dist-tests && rm -rf dist-tests/* && make -C ./resources bats || $(build-env tests.ignoreFailures) && mv dist-tests/report.xml dist-tests/junit-report.xml || true",
+ "test:linux:darwin": "run-script-if --ignore-errors \"$(build-env tests.ignoreFailures)\" --bool \"$(build-env tests.run)\" --then \"mkdir -p dist-tests\" \"rm -rf dist-tests/*\" \"make -C ./resources bats\" --finally \"touch dist-tests/report.xml\" \"mv dist-tests/report.xml dist-tests/junit-report.xml\"",
"test:win32": "echo \"Tests are skipped in Windows\""
},
"devDependencies": {
diff --git a/packages/sonataflow-image-common/resources/modules/kogito-maven/tests/bats/maven-settings.bats b/packages/sonataflow-image-common/resources/modules/kogito-maven/tests/bats/maven-settings.bats
index 8a7e85067c7..66fb2363532 100644
--- a/packages/sonataflow-image-common/resources/modules/kogito-maven/tests/bats/maven-settings.bats
+++ b/packages/sonataflow-image-common/resources/modules/kogito-maven/tests/bats/maven-settings.bats
@@ -24,14 +24,14 @@ source $BATS_TEST_DIRNAME/../../common/added/configure-maven.sh
setup() {
- export HOME=$BATS_TMPDIR/maven
- mkdir -p ${HOME}/.m2/
- cp $BATS_TEST_DIRNAME/../../common/maven/settings.xml ${HOME}/.m2/
- export MAVEN_SETTINGS_PATH="${HOME}/.m2/settings.xml"
+ export KOGITO_HOME=$BATS_TMPDIR/maven
+ mkdir -p ${KOGITO_HOME}/.m2/
+ cp $BATS_TEST_DIRNAME/../../common/maven/settings.xml ${KOGITO_HOME}/.m2/
+ export MAVEN_SETTINGS_PATH="${KOGITO_HOME}/.m2/settings.xml"
}
teardown() {
- rm -rf ${HOME}
+ rm -rf ${KOGITO_HOME}
}
# override this function, cat /dec/urandon makes the test hangs on GH actions
@@ -45,7 +45,7 @@ function _generate_random_id() {
MAVEN_MIRROR_URL="http://localhost:8081/nexus/custom/repo/public"
run configure_mirrors
expected=" mirror.default http://localhost:8081/nexus/custom/repo/public external:* "
- result=$(xmllint --xpath "//*[local-name()='mirrors']//*[local-name()='mirror']" ${HOME}/.m2/settings.xml)
+ result=$(xmllint --xpath "//*[local-name()='mirrors']//*[local-name()='mirror']" ${KOGITO_HOME}/.m2/settings.xml)
echo "expected=${expected}"
echo "expected=${result}"
[ "${expected}" = "${result}" ]
@@ -56,7 +56,7 @@ function _generate_random_id() {
HTTPS_PROXY="https://10.10.10.10:8443"
run configure_proxy
expected=" genproxy true https https://10.10.10.10 8443 "
- result=$(xmllint --xpath "//*[local-name()='proxies']//*[local-name()='proxy']" ${HOME}/.m2/settings.xml)
+ result=$(xmllint --xpath "//*[local-name()='proxies']//*[local-name()='proxy']" ${KOGITO_HOME}/.m2/settings.xml)
echo "expected=${expected}"
echo "result=${result}"
[ "${expected}" = "${result}" ]
@@ -67,7 +67,7 @@ function _generate_random_id() {
HTTPS_PROXY="https://10.10.10.10:"
run configure_proxy
expected=" genproxy true https https://10.10.10.10 443 "
- result=$(xmllint --xpath "//*[local-name()='proxies']//*[local-name()='proxy']" ${HOME}/.m2/settings.xml)
+ result=$(xmllint --xpath "//*[local-name()='proxies']//*[local-name()='proxy']" ${KOGITO_HOME}/.m2/settings.xml)
echo "expected=${expected}"
echo "result=${result}"
[ "${expected}" = "${result}" ]
@@ -80,7 +80,7 @@ function _generate_random_id() {
PROXY_PASSWORD="impossible2guess"
run configure_proxy
expected=" genproxy true https https://10.10.10.10 8443 hello impossible2guess "
- result=$(xmllint --xpath "//*[local-name()='proxies']//*[local-name()='proxy']" ${HOME}/.m2/settings.xml)
+ result=$(xmllint --xpath "//*[local-name()='proxies']//*[local-name()='proxy']" ${KOGITO_HOME}/.m2/settings.xml)
echo "expected=${expected}"
echo "result=${result}"
[ "${expected}" = "${result}" ]
@@ -91,7 +91,7 @@ function _generate_random_id() {
HTTP_PROXY="http://10.10.10.20:8003"
run configure_proxy
expected=" genproxy true http http://10.10.10.20 8003 "
- result=$(xmllint --xpath "//*[local-name()='proxies']//*[local-name()='proxy']" ${HOME}/.m2/settings.xml)
+ result=$(xmllint --xpath "//*[local-name()='proxies']//*[local-name()='proxy']" ${KOGITO_HOME}/.m2/settings.xml)
echo "expected=${expected}"
echo "result=${result}"
[ "${expected}" = "${result}" ]
@@ -104,7 +104,7 @@ function _generate_random_id() {
PROXY_PASSWORD="impossible2guess"
run configure_proxy
expected=" genproxy true http http://10.10.10.20 80 hello impossible2guess "
- result=$(xmllint --xpath "//*[local-name()='proxies']//*[local-name()='proxy']" ${HOME}/.m2/settings.xml)
+ result=$(xmllint --xpath "//*[local-name()='proxies']//*[local-name()='proxy']" ${KOGITO_HOME}/.m2/settings.xml)
echo "expected=${expected}"
echo "result=${result}"
[ "${expected}" = "${result}" ]
@@ -115,7 +115,7 @@ function _generate_random_id() {
HTTP_PROXY="http://10.10.10.20:8003"
run configure_proxy
expected=" genproxy true http http://10.10.10.20 8003 "
- result=$(xmllint --xpath "//*[local-name()='proxies']//*[local-name()='proxy']" ${HOME}/.m2/settings.xml)
+ result=$(xmllint --xpath "//*[local-name()='proxies']//*[local-name()='proxy']" ${KOGITO_HOME}/.m2/settings.xml)
echo "expected=${expected}"
echo "result=${result}"
[ "${expected}" = "${result}" ]
@@ -130,7 +130,7 @@ function _generate_random_id() {
HTTP_PROXY_NONPROXYHOSTS="127.0.0.1|10.1.1.1"
run configure_proxy
expected=" genproxy true http 10.10.10.20 8080 beleza_pura impossible2guess 127.0.0.1|10.1.1.1 "
- result=$(xmllint --xpath "//*[local-name()='proxies']//*[local-name()='proxy']" ${HOME}/.m2/settings.xml)
+ result=$(xmllint --xpath "//*[local-name()='proxies']//*[local-name()='proxy']" ${KOGITO_HOME}/.m2/settings.xml)
echo "expected=${expected}"
echo "result=${result}"
[ "${expected}" = "${result}" ]
@@ -142,7 +142,7 @@ function _generate_random_id() {
HTTP_PROXY_NONPROXYHOSTS="127.0.0.1|10.1.1.1"
run configure_proxy
expected=" genproxy true http 10.10.10.20 80 127.0.0.1|10.1.1.1 "
- result=$(xmllint --xpath "//*[local-name()='proxies']//*[local-name()='proxy']" ${HOME}/.m2/settings.xml)
+ result=$(xmllint --xpath "//*[local-name()='proxies']//*[local-name()='proxy']" ${KOGITO_HOME}/.m2/settings.xml)
echo "expected=${expected}"
echo "result=${result}"
[ "${expected}" = "${result}" ]
@@ -157,7 +157,7 @@ function _generate_random_id() {
HTTP_PROXY_NONPROXYHOSTS="127.0.0.1|10.1.1.1"
run configure_proxy
expected=" genproxy true https https://10.10.10.20 8443 beleza_pura impossible2guess 127.0.0.1|10.1.1.1 "
- result=$(xmllint --xpath "//*[local-name()='proxies']//*[local-name()='proxy']" ${HOME}/.m2/settings.xml)
+ result=$(xmllint --xpath "//*[local-name()='proxies']//*[local-name()='proxy']" ${KOGITO_HOME}/.m2/settings.xml)
echo "expected=${expected}"
echo "result=${result}"
[ "${expected}" = "${result}" ]
@@ -235,7 +235,7 @@ function _generate_random_id() {
test
"
- repository_result=$(xmllint --xpath "(//*[local-name()='profiles']//*[local-name()='profile']//*[local-name()='repositories']//*[local-name()='repository'])[last()]" ${HOME}/.m2/settings.xml)
+ repository_result=$(xmllint --xpath "(//*[local-name()='profiles']//*[local-name()='profile']//*[local-name()='repositories']//*[local-name()='repository'])[last()]" ${KOGITO_HOME}/.m2/settings.xml)
echo "repository_expected=${repository_expected}"
echo "repository_result =${repository_result}"
[ "${repository_expected}" = "${repository_result}" ]
@@ -256,7 +256,7 @@ function _generate_random_id() {
test
"
- plugin_repository_result=$(xmllint --xpath "(//*[local-name()='profiles']//*[local-name()='profile']//*[local-name()='pluginRepositories']//*[local-name()='pluginRepository'])[last()]" ${HOME}/.m2/settings.xml)
+ plugin_repository_result=$(xmllint --xpath "(//*[local-name()='profiles']//*[local-name()='profile']//*[local-name()='pluginRepositories']//*[local-name()='pluginRepository'])[last()]" ${KOGITO_HOME}/.m2/settings.xml)
echo "plugin_repository_expected=${plugin_repository_expected}"
echo "plugin_repository_result =${plugin_repository_result}"
[ "${plugin_repository_expected}" = "${plugin_repository_result}" ]
@@ -269,7 +269,7 @@ function _generate_random_id() {
run add_maven_repo
repository_url_expected="http://my.cool.mvn.repo.severinolabs.com/group/public"
- repository_url_result=$(xmllint --xpath "(//*[local-name()='profiles']//*[local-name()='profile']//*[local-name()='repositories']//*[local-name()='repository']//*[local-name()='url'])[last()]" ${HOME}/.m2/settings.xml)
+ repository_url_result=$(xmllint --xpath "(//*[local-name()='profiles']//*[local-name()='profile']//*[local-name()='repositories']//*[local-name()='repository']//*[local-name()='url'])[last()]" ${KOGITO_HOME}/.m2/settings.xml)
echo "repository_url_expected=${repository_url_expected}"
echo "repository_url_result =${repository_url_result}"
[ "${repository_url_expected}" = "${repository_url_result}" ]
@@ -279,7 +279,7 @@ function _generate_random_id() {
always
warn
"
- repository_releases_result=$(xmllint --xpath "(//*[local-name()='profiles']//*[local-name()='profile']//*[local-name()='repositories']//*[local-name()='repository']//*[local-name()='releases'])[last()]" ${HOME}/.m2/settings.xml)
+ repository_releases_result=$(xmllint --xpath "(//*[local-name()='profiles']//*[local-name()='profile']//*[local-name()='repositories']//*[local-name()='repository']//*[local-name()='releases'])[last()]" ${KOGITO_HOME}/.m2/settings.xml)
echo "repository_releases_expected=${repository_releases_expected}"
echo "repository_releases_result =${repository_releases_result}"
[ "${repository_releases_expected}" = "${repository_releases_result}" ]
@@ -289,14 +289,14 @@ function _generate_random_id() {
always
warn
"
- repository_snapshots_result=$(xmllint --xpath "(//*[local-name()='profiles']//*[local-name()='profile']//*[local-name()='repositories']//*[local-name()='repository']//*[local-name()='snapshots'])[last()]" ${HOME}/.m2/settings.xml)
+ repository_snapshots_result=$(xmllint --xpath "(//*[local-name()='profiles']//*[local-name()='profile']//*[local-name()='repositories']//*[local-name()='repository']//*[local-name()='snapshots'])[last()]" ${KOGITO_HOME}/.m2/settings.xml)
echo "repository_snapshots_expected=${repository_snapshots_expected}"
echo "repository_snapshots_result =${repository_snapshots_result}"
[ "${repository_snapshots_expected}" = "${repository_snapshots_result}" ]
plugin_repository_url_expected="http://my.cool.mvn.repo.severinolabs.com/group/public"
- plugin_repository_url_result=$(xmllint --xpath "(//*[local-name()='profiles']//*[local-name()='profile']//*[local-name()='pluginRepositories']//*[local-name()='pluginRepository']//*[local-name()='url'])[last()]" ${HOME}/.m2/settings.xml)
+ plugin_repository_url_result=$(xmllint --xpath "(//*[local-name()='profiles']//*[local-name()='profile']//*[local-name()='pluginRepositories']//*[local-name()='pluginRepository']//*[local-name()='url'])[last()]" ${KOGITO_HOME}/.m2/settings.xml)
echo "plugin_repository_url_expected=${plugin_repository_url_expected}"
echo "plugin_repository_url_result =${plugin_repository_url_result}"
[ "${plugin_repository_url_expected}" = "${plugin_repository_url_result}" ]
@@ -306,7 +306,7 @@ function _generate_random_id() {
always
warn
"
- plugin_repository_releases_result=$(xmllint --xpath "(//*[local-name()='profiles']//*[local-name()='profile']//*[local-name()='pluginRepositories']//*[local-name()='pluginRepository']//*[local-name()='releases'])[last()]" ${HOME}/.m2/settings.xml)
+ plugin_repository_releases_result=$(xmllint --xpath "(//*[local-name()='profiles']//*[local-name()='profile']//*[local-name()='pluginRepositories']//*[local-name()='pluginRepository']//*[local-name()='releases'])[last()]" ${KOGITO_HOME}/.m2/settings.xml)
echo "plugin_repository_releases_expected=${plugin_repository_releases_expected}"
echo "plugin_repository_releases_result =${plugin_repository_releases_result}"
[ "${plugin_repository_releases_expected}" = "${plugin_repository_releases_result}" ]
@@ -316,7 +316,7 @@ function _generate_random_id() {
always
warn
"
- plugin_repository_snapshots_result=$(xmllint --xpath "(//*[local-name()='profiles']//*[local-name()='profile']//*[local-name()='pluginRepositories']//*[local-name()='pluginRepository']//*[local-name()='snapshots'])[last()]" ${HOME}/.m2/settings.xml)
+ plugin_repository_snapshots_result=$(xmllint --xpath "(//*[local-name()='profiles']//*[local-name()='profile']//*[local-name()='pluginRepositories']//*[local-name()='pluginRepository']//*[local-name()='snapshots'])[last()]" ${KOGITO_HOME}/.m2/settings.xml)
echo "plugin_repository_snapshots_expected=${plugin_repository_snapshots_expected}"
echo "plugin_repository_snapshots_result =${plugin_repository_snapshots_result}"
[ "${plugin_repository_snapshots_expected}" = "${plugin_repository_snapshots_result}" ]
@@ -363,7 +363,7 @@ function _generate_random_id() {
test
"
- central_repository_result=$(xmllint --xpath "(//*[local-name()='profiles']//*[local-name()='profile']//*[local-name()='repositories']//*[local-name()='repository'])[last()-1]" ${HOME}/.m2/settings.xml)
+ central_repository_result=$(xmllint --xpath "(//*[local-name()='profiles']//*[local-name()='profile']//*[local-name()='repositories']//*[local-name()='repository'])[last()-1]" ${KOGITO_HOME}/.m2/settings.xml)
echo "central_repository_expected=${central_repository_expected}"
echo "central_repository_result =${central_repository_result}"
[ "${central_repository_expected}" = "${central_repository_result}" ]
@@ -384,7 +384,7 @@ function _generate_random_id() {
another-test
"
- company_repository_result=$(xmllint --xpath "(//*[local-name()='profiles']//*[local-name()='profile']//*[local-name()='repositories']//*[local-name()='repository'])[last()]" ${HOME}/.m2/settings.xml)
+ company_repository_result=$(xmllint --xpath "(//*[local-name()='profiles']//*[local-name()='profile']//*[local-name()='repositories']//*[local-name()='repository'])[last()]" ${KOGITO_HOME}/.m2/settings.xml)
echo "company_repository_expected=${company_repository_expected}"
echo "company_repository_result =${company_repository_result}"
[ "${company_repository_expected}" = "${company_repository_result}" ]
@@ -406,7 +406,7 @@ function _generate_random_id() {
test
"
- central_plugin_repository_result=$(xmllint --xpath "(//*[local-name()='profiles']//*[local-name()='profile']//*[local-name()='pluginRepositories']//*[local-name()='pluginRepository'])[last()-1]" ${HOME}/.m2/settings.xml)
+ central_plugin_repository_result=$(xmllint --xpath "(//*[local-name()='profiles']//*[local-name()='profile']//*[local-name()='pluginRepositories']//*[local-name()='pluginRepository'])[last()-1]" ${KOGITO_HOME}/.m2/settings.xml)
echo "central_plugin_repository_expected=${central_plugin_repository_expected}"
echo "central_plugin_repository_result =${central_plugin_repository_result}"
[ "${central_plugin_repository_expected}" = "${central_plugin_repository_result}" ]
@@ -427,7 +427,7 @@ function _generate_random_id() {
another-test
"
- company_plugin_repository_result=$(xmllint --xpath "(//*[local-name()='profiles']//*[local-name()='profile']//*[local-name()='pluginRepositories']//*[local-name()='pluginRepository'])[last()]" ${HOME}/.m2/settings.xml)
+ company_plugin_repository_result=$(xmllint --xpath "(//*[local-name()='profiles']//*[local-name()='profile']//*[local-name()='pluginRepositories']//*[local-name()='pluginRepository'])[last()]" ${KOGITO_HOME}/.m2/settings.xml)
echo "company_plugin_repository_expected=${company_plugin_repository_expected}"
echo "company_plugin_repository_result =${company_plugin_repository_result}"
[ "${company_plugin_repository_expected}" = "${company_plugin_repository_result}" ]
diff --git a/scripts/check-junit-report-results/tests/index.test.js b/scripts/check-junit-report-results/tests/index.test.js
index 5838520b957..8052a80fd46 100644
--- a/scripts/check-junit-report-results/tests/index.test.js
+++ b/scripts/check-junit-report-results/tests/index.test.js
@@ -2,6 +2,16 @@ const parseFile = require("../src/parseFile");
const path = require("path");
describe("Parsing", () => {
+ test("empty", () => {
+ const failed = [];
+ const passed = [];
+
+ parseFile(path.join(__dirname, "./reports/empty.xml"), failed, passed);
+
+ expect(failed.length).toStrictEqual(0);
+ expect(passed.length).toStrictEqual(0);
+ });
+
test("cypress", () => {
const failed = [];
const passed = [];
diff --git a/scripts/check-junit-report-results/tests/reports/empty.xml b/scripts/check-junit-report-results/tests/reports/empty.xml
new file mode 100644
index 00000000000..e69de29bb2d