This is an automated email from the ASF dual-hosted git repository.
jstastnycz pushed a commit to branch radtriste-fix-pipelines
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-images.git
The following commit(s) were added to refs/heads/radtriste-fix-pipelines by
this push:
new dadd463f add initial sleep into startup command in
common-dynamic-resources tests
dadd463f is described below
commit dadd463fd2a10080701da9daa16050f3cc80633e
Author: jstastny-cz <[email protected]>
AuthorDate: Mon Nov 20 12:11:19 2023 +0100
add initial sleep into startup command in common-dynamic-resources tests
---
tests/features/common-dynamic-resources.feature | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/tests/features/common-dynamic-resources.feature
b/tests/features/common-dynamic-resources.feature
index 92cb56dd..23ae6475 100644
--- a/tests/features/common-dynamic-resources.feature
+++ b/tests/features/common-dynamic-resources.feature
@@ -24,6 +24,7 @@ Feature: Common tests for Kogito images
Scenario: Verify if the properties were correctly set using DEFAULT MEM RATIO
When container is started with args
| arg | value
|
+ | command | bash -c "sleep 2s; /home/kogito/kogito-app-launch.sh"
|
| mem_limit | 1073741824
|
| env_json | {"SCRIPT_DEBUG":"true", "JAVA_MAX_MEM_RATIO": 80,
"JAVA_INITIAL_MEM_RATIO": 25} |
Then container log should match regex -Xms205m
@@ -32,6 +33,7 @@ Feature: Common tests for Kogito images
Scenario: Verify if the DEFAULT MEM RATIO properties are overridden with
different values
When container is started with args
| arg | value
|
+ | command | bash -c "sleep 2s; /home/kogito/kogito-app-launch.sh"
|
| mem_limit | 1073741824
|
| env_json | {"SCRIPT_DEBUG":"true", "JAVA_MAX_MEM_RATIO": 50,
"JAVA_INITIAL_MEM_RATIO": 10} |
Then container log should match regex -Xms51m
@@ -39,23 +41,24 @@ Feature: Common tests for Kogito images
Scenario: Verify if the properties were correctly set when aren't passed
When container is started with args
- | arg | value |
- | mem_limit | 1073741824 |
- | env_json | {"SCRIPT_DEBUG":"true"} |
+ | arg | value |
+ | command | bash -c "sleep 2s; /home/kogito/kogito-app-launch.sh" |
+ | mem_limit | 1073741824 |
+ | env_json | {"SCRIPT_DEBUG":"true"} |
Then container log should match regex -Xms128m
And container log should match regex -Xmx512m
Scenario: Verify if Java Remote Debug is correctly configured
When container is started with env
- | variable | value |
- | SCRIPT_DEBUG | true |
- | JAVA_DEBUG | true |
- | JAVA_DEBUG_PORT | 9222 |
+ | arg | value
|
+ | command | bash -c "sleep 2s; /home/kogito/kogito-app-launch.sh"
|
+ | env_json | {"SCRIPT_DEBUG":"true", "JAVA_DEBUG":"true",
"JAVA_DEBUG_PORT":"9222"} |
Then container log should match regex
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=9222
Scenario: Verify if the DEFAULT MEM RATIO properties are overridden with
different values from user provided Xmx and Xms
When container is started with args
| arg | value
|
+ | command | bash -c "sleep 2s; /home/kogito/kogito-app-launch.sh"
|
| mem_limit | 1073741824
|
| env_json | {"SCRIPT_DEBUG":"true", "JAVA_MAX_MEM_RATIO": 50,
"JAVA_INITIAL_MEM_RATIO": 10, "JAVA_OPTIONS":"-Xms4000m -Xmx8000m"} |
Then container log should match regex -Xms4000m
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]