Skip to content

Commit 8c31612

Browse files
committed
[OPENJDK-528] tests to catch stray JVM directories in /usr/lib/jvm
For each JDK version (8,11,17), provide a test which ensures there are no directories from a different JDK in /usr/lib/jvm. Signed-off-by: Jonathan Dowland <[email protected]>
1 parent b4998ed commit 8c31612

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

tests/features/java/openjdk.feature

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,27 @@ Feature: Miscellaneous OpenJDK-related unit tests
5252
Then available container log should not contain dejavu-sans-mono-fonts
5353
Then available container log should not contain os-prober
5454
Then available container log should not contain rpm-plugin-systemd-inhibit
55+
56+
@ubi8/openjdk-8
57+
Scenario: Check that directories from other JDKs are not present (JDK8)
58+
When container is started with args
59+
| arg | value |
60+
| command | ls -1 /usr/lib/jvm |
61+
Then available container log should not contain java-11
62+
And available container log should not contain java-17
63+
64+
@ubi8/openjdk-11
65+
Scenario: Check that directories from other JDKs are not present (JDK11)
66+
When container is started with args
67+
| arg | value |
68+
| command | ls -1 /usr/lib/jvm |
69+
Then available container log should not contain java-1.8.0
70+
Then available container log should not contain java-17
71+
72+
@ubi8/openjdk-17
73+
Scenario: Check that directories from other JDKs are not present (JDK17)
74+
When container is started with args
75+
| arg | value |
76+
| command | ls -1 /usr/lib/jvm |
77+
Then available container log should not contain java-1.8.0
78+
Then available container log should not contain java-11

0 commit comments

Comments
 (0)