test: JVM_RESERVED_CODE_CACHE_SIZE env

Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
This commit is contained in:
Yoan Blanc 2020-02-07 09:03:25 +01:00
parent 05228aa72c
commit 5baee79ee2
No known key found for this signature in database
GPG Key ID: 6058CF4574298812

View File

@ -9,6 +9,7 @@ def test_jvm_args(docker_cli, image, run_user):
environment = { environment = {
'JVM_MINIMUM_MEMORY': '383m', 'JVM_MINIMUM_MEMORY': '383m',
'JVM_MAXIMUM_MEMORY': '2047m', 'JVM_MAXIMUM_MEMORY': '2047m',
'JVM_RESERVED_CODE_CACHE_SIZE': '384m',
'JVM_SUPPORT_RECOMMENDED_ARGS': '-verbose:gc', 'JVM_SUPPORT_RECOMMENDED_ARGS': '-verbose:gc',
} }
container = run_image(docker_cli, image, user=run_user, environment=environment) container = run_image(docker_cli, image, user=run_user, environment=environment)
@ -19,6 +20,7 @@ def test_jvm_args(docker_cli, image, run_user):
assert f'-Xms{environment.get("JVM_MINIMUM_MEMORY")}' in jvm assert f'-Xms{environment.get("JVM_MINIMUM_MEMORY")}' in jvm
assert f'-Xmx{environment.get("JVM_MAXIMUM_MEMORY")}' in jvm assert f'-Xmx{environment.get("JVM_MAXIMUM_MEMORY")}' in jvm
assert f'-XX:ReservedCodeCacheSize={environment.get("JVM_RESERVED_CODE_CACHE_SIZE")}' in jvm
assert environment.get('JVM_SUPPORT_RECOMMENDED_ARGS') in jvm assert environment.get('JVM_SUPPORT_RECOMMENDED_ARGS') in jvm