Skip to content

Commit 94de18a

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 e5a506a commit 94de18a

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
@@ -16,3 +16,11 @@ Feature: Openshift OpenJDK Runtime tests (OPENJDK-474, OPENJDK-2805)
1616
And file /usr/libexec/s2i/run should exist
1717
And file /usr/libexec/s2i/run should not contain JVM_ARGS
1818
And container log should not contain unique unique
19+
20+
@ubi9
21+
# alternative to one of previous steps, for runtime images
22+
Scenario: OPENJDK-2968 Ensure JAVA_ARGS is passed to the running Java application
23+
Given container is started with env
24+
| variable | value |
25+
| JAVA_ARGS | Hello from Cekit test |
26+
Then container log should match regex ^INFO exec -a "java" java.*Hello from Cekit test$

0 commit comments

Comments
 (0)