Skip to content

Commit a8ac991

Browse files
committed
Address review comments
Signed-off-by: Jayashree Huttanagoudar <[email protected]>
1 parent 2842ed4 commit a8ac991

File tree

3 files changed

+44
-40
lines changed

3 files changed

+44
-40
lines changed

modules/jvm/api/tests/features/runtime.feature

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@
44
@ubi8/openjdk-21
55
Feature: OpenJDK Runtime tests
66

7-
@ubi8
8-
Scenario: Check JAVA_APP_NAME can contain spaces (OPENJDK-104)
9-
Given container is started with env
10-
| variable | value |
11-
| JAVA_APP_NAME | foo bar |
12-
Then container log should not contain exec: bar': not found
13-
147
@ubi8
158
Scenario: Check JAVA_OPTS overrides defaults (OPENJDK-2009)
169
Given container is started with env
@@ -24,36 +17,3 @@ Feature: OpenJDK Runtime tests
2417
| variable | value |
2518
| JAVA_OPTS | |
2619
Then container log should not contain -XX:MaxRAMPercentage
27-
28-
Scenario: JAVA_OPTIONS sets JAVA_OPTS and overrides defaults (OPENJDK-2009)
29-
Given container is started with env
30-
| variable | value |
31-
| JAVA_OPTIONS | --show-version |
32-
Then container log should not contain -XX:MaxRAMPercentage
33-
And container log should contain --show-version
34-
35-
@ubi8
36-
Scenario: Check default JAVA_APP_DIR (OPENJDK-2033)
37-
When container is ready
38-
Then available container log should contain INFO running in /deployments
39-
40-
@ubi8
41-
Scenario: Check custom JAVA_APP_DIR (OPENJDK-2033)
42-
Given container is started with env
43-
| variable | value |
44-
| JAVA_APP_DIR | /home/jboss |
45-
Then available container log should contain INFO running in /home/jboss
46-
47-
@ubi8
48-
Scenario: Check relative path JAVA_APP_DIR (OPENJDK-2033)
49-
Given container is started with env
50-
| variable | value |
51-
| JAVA_APP_DIR | . |
52-
Then available container log should contain INFO running in /home/jboss
53-
54-
@ubi8
55-
Scenario: Check non-existent path JAVA_APP_DIR (OPENJDK-2033)
56-
Given container is started with env
57-
| variable | value |
58-
| JAVA_APP_DIR | /nope |
59-
Then available container log should contain ERROR No directory /nope found for auto detection

modules/run/tests/features/java.runtime.feature

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,38 @@
33
@ubi8/openjdk-17
44
@ubi8/openjdk-21
55
Feature: Openshift OpenJDK Runtime tests
6+
@ubi8
7+
Scenario: Check JAVA_APP_NAME can contain spaces (OPENJDK-104)
8+
Given container is started with env
9+
| variable | value |
10+
| JAVA_APP_NAME | foo bar |
11+
Then container log should not contain exec: bar': not found
12+
13+
@ubi8
14+
Scenario: Check default JAVA_APP_DIR (OPENJDK-2033)
15+
When container is ready
16+
Then available container log should contain INFO running in /deployments
17+
18+
@ubi8
19+
Scenario: Check custom JAVA_APP_DIR (OPENJDK-2033)
20+
Given container is started with env
21+
| variable | value |
22+
| JAVA_APP_DIR | /home/jboss |
23+
Then available container log should contain INFO running in /home/jboss
24+
25+
@ubi8
26+
Scenario: Check relative path JAVA_APP_DIR (OPENJDK-2033)
27+
Given container is started with env
28+
| variable | value |
29+
| JAVA_APP_DIR | . |
30+
Then available container log should contain INFO running in /home/jboss
31+
32+
@ubi8
33+
Scenario: Check non-existent path JAVA_APP_DIR (OPENJDK-2033)
34+
Given container is started with env
35+
| variable | value |
36+
| JAVA_APP_DIR | /nope |
37+
Then available container log should contain ERROR No directory /nope found for auto detection
638
Scenario: Ensure JVM_ARGS is no longer present in the run script
739
Given s2i build https://github.com/jboss-container-images/openjdk-test-applications from undertow-servlet
840
Then file /usr/local/s2i/run should not contain JVM_ARGS
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
@ubi8/openjdk-8
2+
@ubi8/openjdk-11
3+
@ubi8/openjdk-17
4+
@ubi8/openjdk-21
5+
Feature: OpenJDK JAVA s2i Runtime tests
6+
7+
Scenario: JAVA_OPTIONS sets JAVA_OPTS and overrides defaults (OPENJDK-2009)
8+
Given container is started with env
9+
| variable | value |
10+
| JAVA_OPTIONS | --show-version |
11+
Then container log should not contain -XX:MaxRAMPercentage
12+
And container log should contain --show-version

0 commit comments

Comments
 (0)