Skip to content

Commit 3a410cb

Browse files
authored
Merge pull request #564 from jmtd/3647-adjust-tests
[OPENJDK-3647] adjust jlink tests
2 parents 132b5d8 + 31708a3 commit 3a410cb

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed
Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
@ubi9/openjdk-17
21
@openjdk-tech-preview/openjdk-21-jlink-rhel9
32
Feature: Openshift OpenJDK S2I tests (jlink specific)
43

54
Scenario: tech preview warning is printed (OPENJDK-3038)
6-
Given failing s2i build https://github.com/jboss-container-images/openjdk-test-applications from spring-boot-sample-simple/target using master
5+
Given s2i build https://github.com/rh-openjdk/openjdk-container-test-applications from spring-boot-sample-simple/target using master
76
| variable | value |
87
| S2I_ENABLE_JLINK | true |
98
Then s2i build log should contain Jlink integration is a Tech Preview feature
109

1110
Scenario: Ensure S2I_ENABLE_JLINK is not set to true
12-
Given s2i build https://github.com/jboss-container-images/openjdk-test-applications from quarkus-quickstarts/getting-started-3.0.1.Final-nos2i
13-
Then container log should not contain S2I_ENABLE_JLINK=true
14-
And run bash -c "test ! -d /tmp/jre && echo PASS" in container and immediately check its output for PASS
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
1514

1615
Scenario: Check that /tmp/jre/bin/java and /tmp/jre/lib/modules exist post s2i build if jlink is enabled.
17-
Given s2i build https://github.com/jboss-container-images/openjdk-test-applications from quarkus-quickstarts/getting-started-3.9.2-uberjar
16+
Given s2i build https://github.com/rh-openjdk/openjdk-container-test-applications from quarkus-quickstarts/getting-started-3.9.2-uberjar
1817
| variable | value |
1918
| S2I_ENABLE_JLINK | true |
20-
Then container log should contain S2I_ENABLE_JLINK=true
21-
and run bash -c "test -d /tmp/jre/bin/java && test -d /tmp/jre/lib/modules && echo PASS" in container and immediately check its output for PASS
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

0 commit comments

Comments
 (0)