Skip to content

Commit a44683c

Browse files
committed
test tagging for jdk21
Signed-off-by: Jonathan Dowland <[email protected]>
1 parent 75e6ba1 commit a44683c

10 files changed

+37
-16
lines changed

tests/features/java.security.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@ubi8/openjdk-8
22
@ubi8/openjdk-11
33
@ubi8/openjdk-17
4+
@ubi8/openjdk-21
45
Feature: Openshift S2I tests
56
Scenario: Check networkaddress.cache.negative.ttl has been set correctly
67
Given s2i build https://github.com/jboss-openshift/openshift-examples/ from binary-cli-security-property

tests/features/java/java_s2i.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@ubi8/openjdk-8
22
@ubi8/openjdk-11
33
@ubi8/openjdk-17
4+
@ubi8/openjdk-21
45
Feature: Openshift OpenJDK S2I tests
56
# NOTE: these tests should be usable with the other images once we have refactored the JDK scripts.
67
# These builds do not actually run maven. This is important, because the proxy

tests/features/java/java_s2i_inc.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@ubi8/openjdk-8
22
@ubi8/openjdk-11
33
@ubi8/openjdk-17
4+
@ubi8/openjdk-21
45
Feature: Openshift OpenJDK S2I tests
56

67
# test incremental builds

tests/features/java/memory.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ Feature: OPENJDK-559 JVM Memory tests
6060
@ubi8/openjdk-8
6161
@ubi8/openjdk-11
6262
@ubi8/openjdk-17
63+
@ubi8/openjdk-21
6364
Scenario: Ensure Maven doesn't use MaxRAMPercentage=80
6465
Given s2i build https://github.com/jboss-openshift/openshift-examples from spring-boot-sample-simple
6566
Then s2i build log should match regex INFO Using MAVEN_OPTS.*-XX:MaxRAMPercentage=25.0$

tests/features/java/openjdk.feature

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Feature: Miscellaneous OpenJDK-related unit tests
1919
| command | rpm -qa |
2020
Then available container log should not contain java-1.8.0
2121
Then available container log should not contain java-17
22+
Then available container log should not contain java-21
2223

2324
@ubi8/openjdk-17
2425
Scenario: Check that only OpenJDK 17 is installed
@@ -27,6 +28,17 @@ Feature: Miscellaneous OpenJDK-related unit tests
2728
| command | rpm -qa |
2829
Then available container log should not contain java-1.8.0
2930
Then available container log should not contain java-11
31+
Then available container log should not contain java-21
32+
33+
@ubi8/openjdk-21
34+
@ubi8/openjdk-21-runtime
35+
Scenario: Check that only OpenJDK 21 is installed
36+
When container is started with args
37+
| arg | value |
38+
| command | rpm -qa |
39+
Then available container log should not contain java-1.8.0
40+
Then available container log should not contain java-11
41+
Then available container log should not contain java-17
3042

3143
@ubi8
3244
Scenario: Ensure JAVA_HOME is defined and contains Java
@@ -59,6 +71,7 @@ Feature: Miscellaneous OpenJDK-related unit tests
5971
| command | ls -1 /usr/lib/jvm |
6072
Then available container log should not contain java-1.8.0
6173
Then available container log should not contain java-17
74+
Then available container log should not contain java-21
6275

6376
@ubi8/openjdk-17
6477
Scenario: Check that directories from other JDKs are not present (JDK17)
@@ -67,6 +80,17 @@ Feature: Miscellaneous OpenJDK-related unit tests
6780
| command | ls -1 /usr/lib/jvm |
6881
Then available container log should not contain java-1.8.0
6982
Then available container log should not contain java-11
83+
Then available container log should not contain java-21
84+
85+
@ubi8/openjdk-21
86+
@ubi8/openjdk-21-runtime
87+
Scenario: Check that directories from other JDKs are not present (JDK21)
88+
When container is started with args
89+
| arg | value |
90+
| command | ls -1 /usr/lib/jvm |
91+
Then available container log should not contain java-1.8.0
92+
Then available container log should not contain java-11
93+
Then available container log should not contain java-17
7094

7195
@ubi8/openjdk-8
7296
@ubi8/openjdk-8-runtime

tests/features/java/openjdk_s2i.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# builder only
22
@ubi8/openjdk-11
33
@ubi8/openjdk-17
4+
@ubi8/openjdk-21
45
Feature: Openshift OpenJDK-only S2I tests
56

67
@ubi8/openjdk-8

tests/features/java/ports.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@ubi8/openjdk-8
22
@ubi8/openjdk-11
33
@ubi8/openjdk-17
4+
@ubi8/openjdk-21
45
Feature: Openshift OpenJDK port tests
56

67
Scenario: Check ports are available

tests/features/java/runtime.feature

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
1+
@ubi8/openjdk-8
2+
@ubi8/openjdk-11
3+
@ubi8/openjdk-17
4+
@ubi8/openjdk-21
15
Feature: Openshift OpenJDK Runtime tests
26

3-
@ubi8/openjdk-8
4-
@ubi8/openjdk-11
5-
@ubi8/openjdk-17
67
Scenario: Ensure JVM_ARGS is no longer present in the run script
78
Given s2i build https://github.com/jboss-openshift/openshift-quickstarts from undertow-servlet
89
Then file /usr/local/s2i/run should not contain JVM_ARGS
910

10-
@ubi8/openjdk-8
11-
@ubi8/openjdk-11
12-
@ubi8/openjdk-17
1311
Scenario: Ensure JAVA_ARGS are passed through to the running java application
1412
Given s2i build https://github.com/jboss-openshift/openshift-quickstarts from undertow-servlet
1513
| variable | value |
1614
| JAVA_ARGS | Hello from CTF test |
1715
Then container log should contain /deployments/undertow-servlet.jar Hello from CTF test
1816

19-
@ubi8/openjdk-8
20-
@ubi8/openjdk-11
21-
@ubi8/openjdk-17
2217
Scenario: Ensure diagnostic options work correctly
2318
Given s2i build https://github.com/jboss-openshift/openshift-quickstarts from undertow-servlet
2419
| variable | value |
@@ -27,9 +22,7 @@ Feature: Openshift OpenJDK Runtime tests
2722
Then container log should contain /deployments/undertow-servlet.jar Hello from CTF test
2823
And container log should contain -XX:NativeMemoryTracking=summary
2924

30-
@ubi8/openjdk-8
31-
@ubi8/openjdk-11
32-
@ubi8/openjdk-17
25+
@ubi8
3326
Scenario: OPENJDK-474 to ensure JAVA_ARGS is not duplicated in the java command line
3427
Given container is started with env
3528
| variable | value |
@@ -57,10 +50,6 @@ Feature: Openshift OpenJDK Runtime tests
5750
| JAVA_OPTS | |
5851
Then container log should not contain -XX:MaxRAMPercentage
5952

60-
# builder images only
61-
@ubi8/openjdk-8
62-
@ubi8/openjdk-11
63-
@ubi8/openjdk-17
6453
Scenario: JAVA_OPTIONS sets JAVA_OPTS and overrides defaults (OPENJDK-2009)
6554
Given container is started with env
6655
| variable | value |

tests/features/openshift.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Feature: Tests for all openshift images
1212
@ubi8/openjdk-8
1313
@ubi8/openjdk-11
1414
@ubi8/openjdk-17
15+
@ubi8/openjdk-21
1516
Scenario: Check that builder labels are correctly set
1617
Given image is built
1718
Then the image should contain label io.openshift.s2i.scripts-url with value image:///usr/local/s2i

tests/features/s2i-core.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@ubi8/openjdk-8
22
@ubi8/openjdk-11
33
@ubi8/openjdk-17
4+
@ubi8/openjdk-21
45
Feature: Openshift S2I tests
56
# OPENJDK-84 - /tmp/src should not be present after build
67
Scenario: run an s2i build and check that /tmp/src has been removed afterwards

0 commit comments

Comments
 (0)