Skip to content

Commit edd924a

Browse files
authored
Merge pull request #387 from jmtd/OPENJDK-2034-another-test
Openjdk 2034 another test S2I_TARGET_DEPLOYMENTS_DIR and JAVA_APP_DIR
2 parents 3cde7e3 + 5edb224 commit edd924a

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

tests/features/java/runtime.feature

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,27 +43,35 @@ Feature: Openshift OpenJDK Runtime tests
4343
Then container log should not contain exec: bar': not found
4444

4545
@ubi9
46-
Scenario: Check default JAVA_APP_DIR (OPENJDK-2033)
46+
Scenario: Check default JAVA_APP_DIR (OPENJDK-2034)
4747
When container is ready
4848
Then available container log should contain INFO running in /deployments
4949

5050
@ubi9
51-
Scenario: Check custom JAVA_APP_DIR (OPENJDK-2033)
51+
Scenario: Check custom JAVA_APP_DIR (OPENJDK-2034)
5252
Given container is started with env
5353
| variable | value |
5454
| JAVA_APP_DIR | /home/default |
5555
Then available container log should contain INFO running in /home/default
5656

5757
@ubi9
58-
Scenario: Check relative path JAVA_APP_DIR (OPENJDK-2033)
58+
Scenario: Check relative path JAVA_APP_DIR (OPENJDK-2034)
5959
Given container is started with env
6060
| variable | value |
6161
| JAVA_APP_DIR | . |
6262
Then available container log should contain INFO running in /home/default
6363

6464
@ubi9
65-
Scenario: Check non-existent path JAVA_APP_DIR (OPENJDK-2033)
65+
Scenario: Check non-existent path JAVA_APP_DIR (OPENJDK-2034)
6666
Given container is started with env
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)