Skip to content

Commit 2842ed4

Browse files
committed
Split the tests inside tests/features/java/runtime.feature to couple them with appropriate modules
Signed-off-by: Jayashree Huttanagoudar <[email protected]>
1 parent 1c3b4ad commit 2842ed4

File tree

2 files changed

+30
-25
lines changed

2 files changed

+30
-25
lines changed

tests/features/java/runtime.feature renamed to modules/jvm/api/tests/features/runtime.feature

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,7 @@
22
@ubi8/openjdk-11
33
@ubi8/openjdk-17
44
@ubi8/openjdk-21
5-
Feature: Openshift OpenJDK Runtime tests
6-
Scenario: Ensure JVM_ARGS is no longer present in the run script
7-
Given s2i build https://github.com/jboss-container-images/openjdk-test-applications from undertow-servlet
8-
Then file /usr/local/s2i/run should not contain JVM_ARGS
9-
10-
Scenario: Ensure JAVA_ARGS are passed through to the running java application
11-
Given s2i build https://github.com/jboss-container-images/openjdk-test-applications from undertow-servlet
12-
| variable | value |
13-
| JAVA_ARGS | Hello from CTF test |
14-
Then container log should contain /deployments/undertow-servlet.jar Hello from CTF test
15-
16-
Scenario: Ensure diagnostic options work correctly
17-
Given s2i build https://github.com/jboss-container-images/openjdk-test-applications from undertow-servlet
18-
| variable | value |
19-
| JAVA_ARGS | Hello from CTF test |
20-
| JAVA_DIAGNOSTICS | true |
21-
Then container log should contain /deployments/undertow-servlet.jar Hello from CTF test
22-
And container log should contain -XX:NativeMemoryTracking=summary
23-
24-
@ubi8
25-
Scenario: OPENJDK-474 to ensure JAVA_ARGS is not duplicated in the java command line
26-
Given container is started with env
27-
| variable | value |
28-
| JAVA_ARGS | unique |
29-
Then container log should not contain unique unique
5+
Feature: OpenJDK Runtime tests
306

317
@ubi8
328
Scenario: Check JAVA_APP_NAME can contain spaces (OPENJDK-104)
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
@ubi8/openjdk-8
2+
@ubi8/openjdk-11
3+
@ubi8/openjdk-17
4+
@ubi8/openjdk-21
5+
Feature: Openshift OpenJDK Runtime tests
6+
Scenario: Ensure JVM_ARGS is no longer present in the run script
7+
Given s2i build https://github.com/jboss-container-images/openjdk-test-applications from undertow-servlet
8+
Then file /usr/local/s2i/run should not contain JVM_ARGS
9+
10+
Scenario: Ensure JAVA_ARGS are passed through to the running java application
11+
Given s2i build https://github.com/jboss-container-images/openjdk-test-applications from undertow-servlet
12+
| variable | value |
13+
| JAVA_ARGS | Hello from CTF test |
14+
Then container log should contain /deployments/undertow-servlet.jar Hello from CTF test
15+
16+
Scenario: Ensure diagnostic options work correctly
17+
Given s2i build https://github.com/jboss-container-images/openjdk-test-applications from undertow-servlet
18+
| variable | value |
19+
| JAVA_ARGS | Hello from CTF test |
20+
| JAVA_DIAGNOSTICS | true |
21+
Then container log should contain /deployments/undertow-servlet.jar Hello from CTF test
22+
And container log should contain -XX:NativeMemoryTracking=summary
23+
24+
@ubi8
25+
Scenario: OPENJDK-474 to ensure JAVA_ARGS is not duplicated in the java command line
26+
Given container is started with env
27+
| variable | value |
28+
| JAVA_ARGS | unique |
29+
Then container log should not contain unique unique

0 commit comments

Comments
 (0)