Skip to content

Commit

Permalink
test tagging for openjdk-21 and 21-runtime
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Dowland <[email protected]>
  • Loading branch information
jmtd committed Nov 6, 2023
1 parent 4dcd0cf commit 72b6ccb
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/features/java.security.feature
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@ubi9/openjdk-11
@ubi9/openjdk-17
@ubi9/openjdk-21
Feature: Openshift S2I tests
Scenario: Check networkaddress.cache.negative.ttl has been set correctly
Given s2i build https://github.com/jboss-openshift/openshift-examples/ from binary-cli-security-property
Expand Down
1 change: 1 addition & 0 deletions tests/features/java/java_s2i.feature
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@ubi9/openjdk-11
@ubi9/openjdk-17
@ubi9/openjdk-21
Feature: Openshift OpenJDK S2I tests
# NOTE: these tests should be usable with the other images once we have refactored the JDK scripts.
# These builds do not actually run maven. This is important, because the proxy
Expand Down
1 change: 1 addition & 0 deletions tests/features/java/java_s2i_inc.feature
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@ubi9/openjdk-11
@ubi9/openjdk-17
@ubi9/openjdk-21
Feature: Openshift OpenJDK S2I tests

# test incremental builds
Expand Down
1 change: 1 addition & 0 deletions tests/features/java/memory.feature
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Feature: OPENJDK-559 JVM Memory tests
# Not the runtime images
@ubi9/openjdk-11
@ubi9/openjdk-17
@ubi9/openjdk-21
Scenario: Ensure Maven doesn't use MaxRAMPercentage=80
Given s2i build https://github.com/jboss-openshift/openshift-examples from spring-boot-sample-simple
Then s2i build log should match regex INFO Using MAVEN_OPTS.*-XX:MaxRAMPercentage=25.0$
24 changes: 24 additions & 0 deletions tests/features/java/openjdk.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Feature: Miscellaneous OpenJDK-related unit tests
| command | rpm -qa |
Then available container log should not contain java-1.8.0
Then available container log should not contain java-17
Then available container log should not contain java-21

@ubi9/openjdk-17
@ubi9/openjdk-17-runtime
Expand All @@ -17,6 +18,17 @@ Feature: Miscellaneous OpenJDK-related unit tests
| command | rpm -qa |
Then available container log should not contain java-1.8.0
Then available container log should not contain java-11
Then available container log should not contain java-21

@ubi9/openjdk-21
@ubi9/openjdk-21-runtime
Scenario: Check that only OpenJDK 21 is installed
When container is started with args
| arg | value |
| command | rpm -qa |
Then available container log should not contain java-1.8.0
Then available container log should not contain java-11
Then available container log should not contain java-17

@ubi9
Scenario: Ensure JAVA_HOME is defined and contains Java
Expand All @@ -42,6 +54,7 @@ Feature: Miscellaneous OpenJDK-related unit tests
| command | ls -1 /usr/lib/jvm |
Then available container log should not contain java-1.8.0
Then available container log should not contain java-17
Then available container log should not contain java-21

@ubi9/openjdk-17
@ubi9/openjdk-17-runtime
Expand All @@ -51,6 +64,17 @@ Feature: Miscellaneous OpenJDK-related unit tests
| command | ls -1 /usr/lib/jvm |
Then available container log should not contain java-1.8.0
Then available container log should not contain java-11
Then available container log should not contain java-21

@ubi9/openjdk-21
@ubi9/openjdk-21-runtime
Scenario: Check that directories from other JDKs are not present (JDK21)
When container is started with args
| arg | value |
| command | ls -1 /usr/lib/jvm |
Then available container log should not contain java-1.8.0
Then available container log should not contain java-11
Then available container log should not contain java-17

@ubi9
Scenario: Ensure LANG is defined and contains UTF-8
Expand Down
1 change: 1 addition & 0 deletions tests/features/java/openjdk_s2i.feature
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# builder only
@ubi9/openjdk-11
@ubi9/openjdk-17
@ubi9/openjdk-21
Feature: Openshift OpenJDK-only S2I tests
Scenario: Check java perf dir owned by default (CLOUD-2070, OPENJDK-91)
Given s2i build https://github.com/jboss-openshift/openshift-quickstarts from undertow-servlet
Expand Down
1 change: 1 addition & 0 deletions tests/features/java/ports.feature
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@ubi9/openjdk-11
@ubi9/openjdk-17
@ubi9/openjdk-21
Feature: Openshift OpenJDK port tests

Scenario: Check ports are available
Expand Down
1 change: 1 addition & 0 deletions tests/features/java/runtime.feature
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@ubi9/openjdk-11
@ubi9/openjdk-17
@ubi9/openjdk-21
Feature: Openshift OpenJDK Runtime tests

Scenario: Ensure JAVA_ARGS is passed through, diagnostic options work correctly, JVM_ARGS not present in run script, OPENJDK-474 JAVA_ARGS not repeated
Expand Down
1 change: 1 addition & 0 deletions tests/features/openshift.feature
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Feature: Tests for all openshift images
# builder-only test
@ubi9/openjdk-11
@ubi9/openjdk-17
@ubi9/openjdk-21
Scenario: Check that builder labels are correctly set
Given image is built
Then the image should contain label io.openshift.s2i.scripts-url with value image:///usr/local/s2i
1 change: 1 addition & 0 deletions tests/features/s2i-core.feature
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@ubi9/openjdk-11
@ubi9/openjdk-17
@ubi9/openjdk-21
Feature: Openshift S2I tests
# OPENJDK-84 - /tmp/src should not be present after build
Scenario: run an s2i build and check that /tmp/src has been removed afterwards
Expand Down

0 comments on commit 72b6ccb

Please sign in to comment.