Scenario: Verify if the properties were correctly set using DEFAULT MEM RATIO # features/image/common-dynamic-resources.feature:24 When container is started with args # steps/container_steps.py:86 11.234s | arg | value | | 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 # steps/container_steps.py:19 30.194s Traceback (most recent call last): File "/home/ec2-user/virtenvs/cekit/lib/python3.11/site-packages/behave/model.py", line 1329, in run match.run(runner.context) File "/home/ec2-user/virtenvs/cekit/lib/python3.11/site-packages/behave/matchers.py", line 98, in run self.func(context, *args, **kwargs) File "steps/container_steps.py", line 22, in log_matches_regex raise Exception("Regex '%s' did not match the logs" % regex) Exception: Regex '-Xms205m' did not match the logs 2023-07-20 19:23:52,449 container.py:100 INFO Removing container '6b3383d10c807796d486c3f2ab978b56085e31369a7c7c948b6fd8c7af422cc9', 1 try... 2023-07-20 19:23:52,511 container.py:103 INFO Container '6b3383d10c807796d486c3f2ab978b56085e31369a7c7c948b6fd8c7af422cc9' removed And container log should match regex -Xmx819m # None Scenario: Verify if the DEFAULT MEM RATIO properties are overridden with different values # features/image/common-dynamic-resources.feature:32 When container is started with args # steps/container_steps.py:86 11.265s | arg | value | | 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 # steps/container_steps.py:19 30.203s Traceback (most recent call last): File "/home/ec2-user/virtenvs/cekit/lib/python3.11/site-packages/behave/model.py", line 1329, in run match.run(runner.context) File "/home/ec2-user/virtenvs/cekit/lib/python3.11/site-packages/behave/matchers.py", line 98, in run self.func(context, *args, **kwargs) File "steps/container_steps.py", line 22, in log_matches_regex raise Exception("Regex '%s' did not match the logs" % regex) Exception: Regex '-Xms51m' did not match the logs 2023-07-20 19:24:34,257 container.py:100 INFO Removing container 'e03434737d62d850e4cf322d842d3ea4a2cce04f3d1800f01d53c10c2ae2d0dc', 1 try... 2023-07-20 19:24:34,323 container.py:103 INFO Container 'e03434737d62d850e4cf322d842d3ea4a2cce04f3d1800f01d53c10c2ae2d0dc' removed And container log should match regex -Xmx512m # None Scenario: Verify if the properties were correctly set when aren't passed # features/image/common-dynamic-resources.feature:40 When container is started with args # steps/container_steps.py:86 11.134s | arg | value | | mem_limit | 1073741824 | | env_json | {"SCRIPT_DEBUG":"true"} | Then container log should match regex -Xms128m # steps/container_steps.py:19 30.196s Traceback (most recent call last): File "/home/ec2-user/virtenvs/cekit/lib/python3.11/site-packages/behave/model.py", line 1329, in run match.run(runner.context) File "/home/ec2-user/virtenvs/cekit/lib/python3.11/site-packages/behave/matchers.py", line 98, in run self.func(context, *args, **kwargs) File "steps/container_steps.py", line 22, in log_matches_regex raise Exception("Regex '%s' did not match the logs" % regex) Exception: Regex '-Xms128m' did not match the logs