Skip to content

Commit c95b2ef

Browse files
authored
Merge pull request #450 from jhuttana/jlinkcode_integration
[OPENJDK-2731] Behave test for jlink integration code
2 parents 0ddc10b + 1bedb62 commit c95b2ef

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
@ubi9/openjdk-11
2+
@ubi9/openjdk-17
3+
@ubi9/openjdk-21
4+
Feature: Openshift OpenJDK S2I tests (jlink specific)
5+
Scenario: Ensure jlinked builder is used to build the containerized application image
6+
Given s2i build https://github.com/jboss-container-images/openjdk-test-applications from quarkus-quickstarts/getting-started-3.0.1.Final-nos2i
7+
| variable | value |
8+
| S2I_ENABLE_JLINK | true |
9+
| QUARKUS_PACKAGE_TYPE| uber-jar |
10+
Then run ls /tmp/jre in container and check its output for bin
11+
12+
Scenario: Ensure S2I_ENABLE_JLINK is not set to true
13+
Given s2i build https://github.com/jboss-container-images/openjdk-test-applications from quarkus-quickstarts/getting-started-3.0.1.Final-nos2i
14+
Then container log should not contain S2I_ENABLE_JLINK=true
15+
And run bash -c "test ! -d /tmp/jre && echo PASS" in container and immediately check its output for PASS

0 commit comments

Comments
 (0)