Skip to content

Commit cf4f129

Browse files
committed
Add test
Signed-off-by: Christoph Schulz <[email protected]>
1 parent 4a33f6d commit cf4f129

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

modules/run/artifacts/opt/jboss/container/java/run/run-java.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ startup() {
215215
procname="${JAVA_APP_NAME-java}"
216216

217217
log_info "exec -a \"${procname}\" java $(get_java_options) -cp \"$(get_classpath)\" ${args} $*"
218+
log_info "running in $PWD"
218219
exec -a "${procname}" java $(get_java_options) -cp "$(get_classpath)" ${args} $*
219220
}
220221

tests/features/java/runtime.feature

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,15 @@ Feature: Openshift OpenJDK Runtime tests
4141
| variable | value |
4242
| JAVA_APP_NAME | foo bar |
4343
Then container log should not contain exec: bar': not found
44+
45+
@ubi9
46+
Scenario: Check default JAVA_APP_DIR (OPENJDK-2033)
47+
When container is ready
48+
Then available container log should contain INFO running in /deployments
49+
50+
@ubi9
51+
Scenario: Check custom JAVA_APP_DIR (OPENJDK-2033)
52+
Given container is started with env
53+
| variable | value |
54+
| JAVA_APP_DIR | /home/jboss |
55+
Then available container log should contain INFO running in /home/jboss

0 commit comments

Comments
 (0)