Skip to content

Commit 5edb224

Browse files
committed
[OPENJDK-2034] Additional test for JAVA_APP_DIR and S2I
The S2I process puts the build application in /deployments unless overridden by S2I_TARGET_DEPLOYMENTS_DIR. Add a test to ensure that S2I_TARGET_DEPLOYMENTS_DIR and JAVA_APP_DIR set to the same value work as intended. Signed-off-by: Jonathan Dowland <[email protected]>
1 parent 352a910 commit 5edb224

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/features/java/runtime.feature

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,11 @@ Feature: Openshift OpenJDK Runtime tests
6767
| variable | value |
6868
| JAVA_APP_DIR | /nope |
6969
Then available container log should contain ERROR No directory /nope found for auto detection
70+
71+
# Builder images only
72+
Scenario: Ensure JAVA_APP_DIR and S2I work together (OPENJDK-2034)
73+
Given s2i build https://github.com/jboss-openshift/openshift-quickstarts from undertow-servlet
74+
| variable | value |
75+
| JAVA_APP_DIR | /home/default |
76+
| S2I_TARGET_DEPLOYMENTS_DIR | /home/default |
77+
Then container log should contain /home/default/undertow-servlet.jar

0 commit comments

Comments
 (0)