Skip to content

Commit b1debf7

Browse files
committed
[OPENJDK-390] Unit test for invalid $JAVA_HOME
Signed-off-by: Jonathan Dowland <[email protected]>
1 parent 6ae0de0 commit b1debf7

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tests/features/java/openjdk.feature

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# TODO: it would be nice to make the below less specific to 8 & 11. What about when 12
22
# is released, etc.
3-
Feature: Container only has one OpenJDK version installed
3+
Feature: Miscellaneous OpenJDK-related unit tests
44

55
@redhat-openjdk-18/openjdk18-openshift
66
@openjdk/openjdk-1.8-ubi8
@@ -19,3 +19,12 @@ Feature: Container only has one OpenJDK version installed
1919
| arg | value |
2020
| command | rpm -qa |
2121
Then available container log should not contain java-1.8.0
22+
23+
@ubi8
24+
@openjdk
25+
@openj9
26+
Scenario: Ensure JAVA_HOME is defined and contains Java
27+
When container is started with args
28+
| arg | value |
29+
| command | bash -c "$JAVA_HOME/bin/java -version" |
30+
Then available container log should contain OpenJDK Runtime Environment

0 commit comments

Comments
 (0)