1+ @openjdk-tech-preview/openjdk-21-jlink-rhel9
2+ Feature : Openshift OpenJDK S2I tests (jlink specific )
3+
4+ Scenario : tech preview warning is printed (OPENJDK-3038)
5+ Given s2i build https://github.com/rh-openjdk/openjdk-container-test-applications from spring-boot-sample-simple/target using master
6+ | variable | value |
7+ | S2I_ENABLE_JLINK | true |
8+ Then s2i build log should contain Jlink integration is a Tech Preview feature
9+
10+ Scenario : Ensure S2I_ENABLE_JLINK is not set to true
11+ Given s2i build https://github.com/rh-openjdk/openjdk-container-test-applications from spring-boot-sample-simple/target using master
12+ Then s2i build log should not contain Jlink integration is a Tech Preview feature
13+ And file /tmp/jre should not exist
14+
15+ Scenario : Check that /tmp/jre/bin/java and /tmp/jre/lib/modules exist post s2i build if jlink is enabled.
16+ Given s2i build https://github.com/rh-openjdk/openjdk-container-test-applications from quarkus-quickstarts/getting-started-3.9.2-uberjar
17+ | variable | value |
18+ | S2I_ENABLE_JLINK | true |
19+ Then file /tmp/jre/bin/java should exist and be a file
20+ And file /tmp/jre/lib/modules should exist and be a file
21+
22+ Scenario : Check that /tmp/jlink is deleted when S2I_DELETE_SOURCE is set
23+ Given s2i build https://github.com/rh-openjdk/openjdk-container-test-applications from quarkus-quickstarts/getting-started-3.9.2-uberjar
24+ | variable | value |
25+ | S2I_ENABLE_JLINK | true |
26+ | S2I_DELETE_SOURCE | true |
27+ Then s2i build log should contain Cleaning up temporary file directory /tmp/jlink
28+ And file /tmp/jlink should not exist
29+
30+ Scenario : Check that /tmp/jlink is not deleted when S2I_DELETE_SOURCE is set to false
31+ Given s2i build https://github.com/rh-openjdk/openjdk-container-test-applications from quarkus-quickstarts/getting-started-3.9.2-uberjar
32+ | variable | value |
33+ | S2I_ENABLE_JLINK | true |
34+ | S2I_DELETE_SOURCE | false |
35+ Then s2i build log should not contain Cleaning up temporary file directory /tmp/jlink
36+ And file /tmp/jlink should exist
0 commit comments