-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split the tests inside tests/features/java/runtime.feature to couple …
…them with appropriate modules Signed-off-by: Jayashree Huttanagoudar <[email protected]>
- Loading branch information
Showing
2 changed files
with
30 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
@ubi8/openjdk-8 | ||
@ubi8/openjdk-11 | ||
@ubi8/openjdk-17 | ||
@ubi8/openjdk-21 | ||
Feature: Openshift OpenJDK Runtime tests | ||
Scenario: Ensure JVM_ARGS is no longer present in the run script | ||
Given s2i build https://github.com/jboss-container-images/openjdk-test-applications from undertow-servlet | ||
Then file /usr/local/s2i/run should not contain JVM_ARGS | ||
|
||
Scenario: Ensure JAVA_ARGS are passed through to the running java application | ||
Given s2i build https://github.com/jboss-container-images/openjdk-test-applications from undertow-servlet | ||
| variable | value | | ||
| JAVA_ARGS | Hello from CTF test | | ||
Then container log should contain /deployments/undertow-servlet.jar Hello from CTF test | ||
|
||
Scenario: Ensure diagnostic options work correctly | ||
Given s2i build https://github.com/jboss-container-images/openjdk-test-applications from undertow-servlet | ||
| variable | value | | ||
| JAVA_ARGS | Hello from CTF test | | ||
| JAVA_DIAGNOSTICS | true | | ||
Then container log should contain /deployments/undertow-servlet.jar Hello from CTF test | ||
And container log should contain -XX:NativeMemoryTracking=summary | ||
|
||
@ubi8 | ||
Scenario: OPENJDK-474 to ensure JAVA_ARGS is not duplicated in the java command line | ||
Given container is started with env | ||
| variable | value | | ||
| JAVA_ARGS | unique | | ||
Then container log should not contain unique unique |