Skip to content

Commit 683e987

Browse files
committed
Add test
Signed-off-by: Christoph Schulz <[email protected]>
1 parent b57428f commit 683e987

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
@@ -245,6 +245,7 @@ startup() {
245245
procname="${JAVA_APP_NAME-java}"
246246

247247
log_info "exec -a \"${procname}\" java $(get_java_options) -cp \"$(get_classpath)\" ${args} $*"
248+
log_info "running in $PWD"
248249
exec -a "${procname}" java $(get_java_options) -cp "$(get_classpath)" ${args} $*
249250
}
250251

tests/features/java/runtime.feature

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,15 @@ Feature: Openshift OpenJDK Runtime tests
6767
| JAVA_OPTIONS | --show-version |
6868
Then container log should not contain -XX:MaxRAMPercentage
6969
And container log should contain --show-version
70+
71+
@ubi8
72+
Scenario: Check default JAVA_APP_DIR (OPENJDK-2033)
73+
When container is ready
74+
Then available container log should contain INFO running in /deployments
75+
76+
@ubi8
77+
Scenario: Check custom JAVA_APP_DIR (OPENJDK-2033)
78+
Given container is started with env
79+
| variable | value |
80+
| JAVA_APP_DIR | /home/jboss |
81+
Then available container log should contain INFO running in /home/jboss

0 commit comments

Comments
 (0)