Skip to content

Commit f583df9

Browse files
committed
OPENJDK-2968 Test for JAVA_ARGS and runtime images
Passes for current builders, fails for current runtimes. https://issues.redhat.com/browse/OPENJDK-2968 Signed-off-by: Jonathan Dowland <[email protected]>
1 parent e4b427f commit f583df9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

modules/run/tests/features/java.runtime.feature

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ Feature: Openshift OpenJDK Runtime tests
4545
| JAVA_ARGS | Hello from CTF test |
4646
Then container log should contain /deployments/undertow-servlet.jar Hello from CTF test
4747

48+
@ubi8
49+
# alternative to previous test which can run against runtimes
50+
Scenario: OPENJDK-2968 Ensure JAVA_ARGS is passed to the running Java application
51+
Given container is started with env
52+
| variable | value |
53+
| JAVA_ARGS | Hello from Cekit test |
54+
Then container log should match regex ^INFO exec -a "java" java.*Hello from Cekit test$
55+
4856
Scenario: Ensure diagnostic options work correctly
4957
Given s2i build https://github.com/jboss-container-images/openjdk-test-applications from undertow-servlet
5058
| variable | value |

0 commit comments

Comments
 (0)