Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Schulz <[email protected]>
  • Loading branch information
ciis0 committed Aug 12, 2023
1 parent 4a33f6d commit cf4f129
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ startup() {
procname="${JAVA_APP_NAME-java}"

log_info "exec -a \"${procname}\" java $(get_java_options) -cp \"$(get_classpath)\" ${args} $*"
log_info "running in $PWD"
exec -a "${procname}" java $(get_java_options) -cp "$(get_classpath)" ${args} $*
}

Expand Down
12 changes: 12 additions & 0 deletions tests/features/java/runtime.feature
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,15 @@ Feature: Openshift OpenJDK Runtime tests
| variable | value |
| JAVA_APP_NAME | foo bar |
Then container log should not contain exec: bar': not found

@ubi9
Scenario: Check default JAVA_APP_DIR (OPENJDK-2033)
When container is ready
Then available container log should contain INFO running in /deployments

@ubi9
Scenario: Check custom JAVA_APP_DIR (OPENJDK-2033)
Given container is started with env
| variable | value |
| JAVA_APP_DIR | /home/jboss |
Then available container log should contain INFO running in /home/jboss

0 comments on commit cf4f129

Please sign in to comment.