Skip to content

Commit

Permalink
[OPENJDK-2968] test for custom run.sh behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
jmtd committed May 10, 2024
1 parent aa2cca3 commit 2b8031d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions modules/s2i/bash/tests/features/run.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@ubi8/openjdk-8
@ubi8/openjdk-11
@ubi8/openjdk-17
@ubi8/openjdk-21
Feature: S2I run script tests

Scenario: OPENJDK-2968 application run script is invoked instead of image run script
Given s2i build https://github.com/jmtd/openjdk-test-applications from OPENJDK-2968-bin-custom-run with env using OPENJDK-2968-custom-run
| variable | value |
| JAVA_OPTIONS | deprecated |
| JAVA_ARGS | percolated |
Then container log should not contain Starting the Java application using /opt/jboss/container/java/run/run-java.sh
And container log should contain hello world
And container log should contain JAVA_OPTS=deprecated
And container log should contain args=percolated

0 comments on commit 2b8031d

Please sign in to comment.