Skip to content

Commit d68a3af

Browse files
authored
Merge pull request #518 from vieiro/features/OPENJDK-3426
[OPENJDK-3426] Adjust Behave test tagging for new container names
2 parents 5118276 + 10e700d commit d68a3af

File tree

17 files changed

+37
-77
lines changed

17 files changed

+37
-77
lines changed

.github/workflows/image-workflow-template.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: clear docker credentials
4040
run: docker logout
4141

42-
# - name: Behave Tests
43-
# run: |
44-
# echo /home/runner/work/_temp/openshift-bin >> $GITHUB_PATH
45-
# cekit -v --descriptor ${{ inputs.image }}.yaml test behave --steps-url https://github.com/jmtd/behave-test-steps
42+
- name: Behave Tests
43+
run: |
44+
echo /home/runner/work/_temp/openshift-bin >> $GITHUB_PATH
45+
cekit -v --descriptor ${{ inputs.image }}.yaml test behave --steps-url https://github.com/jmtd/behave-test-steps

.github/workflows/ubi9-openjdk-17-runtime.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/workflows/ubi9-openjdk-17.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/workflows/ubi9-openjdk-21-runtime.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/workflows/ubi9-openjdk-21.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

modules/jdk/tests/features/openjdk.feature

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Feature: Miscellaneous OpenJDK-related unit tests
22

3-
@ubi9/openjdk-11
4-
@ubi9/openjdk-11-runtime
3+
@openjdk-els/openjdk-11-rhel9
4+
@openjdk-els/openjdk-11-runtime-rhel9
55
Scenario: Check that only OpenJDK 11 is installed
66
When container is started with args
77
| arg | value |
@@ -37,7 +37,7 @@ Feature: Miscellaneous OpenJDK-related unit tests
3737
| command | bash -c "$JAVA_HOME/bin/java -version" |
3838
Then available container log should contain OpenJDK Runtime Environment
3939

40-
@ubi9
40+
@openjdk-els
4141
Scenario: Check that certain non-UBI packages are not installed
4242
When container is started with args
4343
| arg | value |
@@ -46,8 +46,8 @@ Feature: Miscellaneous OpenJDK-related unit tests
4646
Then available container log should not contain os-prober
4747
Then available container log should not contain rpm-plugin-systemd-inhibit
4848

49-
@ubi9/openjdk-11
50-
@ubi9/openjdk-11-runtime
49+
@openjdk-els/openjdk-11-rhel9
50+
@openjdk-els/openjdk-11-runtime-rhel9
5151
Scenario: Check that directories from other JDKs are not present (JDK11)
5252
When container is started with args
5353
| arg | value |
@@ -76,21 +76,21 @@ Feature: Miscellaneous OpenJDK-related unit tests
7676
Then available container log should not contain java-11
7777
Then available container log should not contain java-17
7878

79-
@ubi9
79+
@openjdk-els
8080
Scenario: Ensure LANG is defined and contains UTF-8
8181
When container is started with args
8282
| arg | value |
8383
| command | bash -c "$JAVA_HOME/bin/java -XshowSettings:properties -version" |
8484
Then available container log should contain file.encoding = UTF-8
8585

86-
@ubi9
86+
@openjdk-els
8787
Scenario: Ensure tar is installed (OPENJDK-1165)
8888
When container is started with args
8989
| arg | value |
9090
| command | tar |
9191
Then available container log should not contain command not found
9292

93-
@ubi9
93+
@openjdk-els
9494
Scenario: Ensure tzdata RPM is properly installed (OPENJDK-2519)
9595
When container is started with args
9696
| arg | value |

modules/jvm/tests/features/gc.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@ubi9
1+
@openjdk-els
22
Feature: Openshift OpenJDK GC tests
33

44
Scenario: Check default GC configuration

modules/jvm/tests/features/memory.feature

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
Feature: OPENJDK-559 JVM Memory tests
22

3-
@ubi9
3+
@openjdk-els
44
Scenario: Check default JVM max heap configuration
55
Given container is started as uid 1000
66
Then container log should contain -XX:MaxRAMPercentage=80.0
77

8-
@ubi9
8+
@openjdk-els
99
Scenario: Check configured JVM max heap configuration and ensure JAVA_MAX_MEM_RATIO accepts floats but only takes whole number part
1010
Given container is started with env
1111
| variable | value |
1212
| JAVA_MAX_MEM_RATIO | 90.4 |
1313
Then container log should contain -XX:MaxRAMPercentage=90.0
1414

15-
@ubi9
15+
@openjdk-els
1616
Scenario: Ensure JAVA_MAX_MEM_RATIO accepts Integers
1717
Given container is started with env
1818
| variable | value |
1919
| JAVA_MAX_MEM_RATIO | 90 |
2020
Then container log should contain -XX:MaxRAMPercentage=90.0
2121

22-
@ubi9
22+
@openjdk-els
2323
Scenario: Ensure JAVA_MAX_MEM_RATIO=0 disables parameter
2424
Given container is started with env
2525
| variable | value |
2626
| JAVA_MAX_MEM_RATIO | 0 |
2727
Then container log should not contain -XX:MaxRAMPercentage
2828

29-
@ubi9
29+
@openjdk-els
3030
Scenario: Check default JVM initial heap configuration is unspecified
3131
Given container is started as uid 1000
3232
Then container log should not contain -XX:InitialRAMPercentage
3333
And container log should not contain -Xms
3434

3535
# Not the runtime images
36-
@ubi9/openjdk-11
36+
@openjdk-els/openjdk-11-rhel9
3737
@ubi9/openjdk-17
3838
@ubi9/openjdk-21
3939
Scenario: Ensure Maven doesn't use MaxRAMPercentage=80

modules/jvm/tests/features/runtime.feature

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
@ubi9/openjdk-11
1+
@openjdk-els/openjdk-11-rhel9
22
@ubi9/openjdk-17
33
@ubi9/openjdk-21
44
Feature: Openshift OpenJDK Runtime tests
55

6-
@ubi9
6+
@openjdk-els
77
Scenario: Check JAVA_OPTS overrides defaults
88
Given container is started with env
99
| variable | value |
1010
| JAVA_OPTS | --show-version |
1111
Then container log should not contain -XX:MaxRAMPercentage
1212

13-
@ubi9
13+
@openjdk-els
1414
Scenario: Check empty JAVA_OPTS overrides defaults
1515
Given container is started with env
1616
| variable | value |
1717
| JAVA_OPTS | |
1818
Then container log should not contain -XX:MaxRAMPercentage
1919

20-
@ubi9
20+
@openjdk-els
2121
Scenario: Check JAVA_OPTS overrides JAVA_OPTS_APPEND
2222
Given container is started with env
2323
| variable | value |
@@ -26,33 +26,33 @@ Feature: Openshift OpenJDK Runtime tests
2626
Then container log should contain -verbose:gc
2727
And container log should not contain -Xint
2828

29-
@ubi9
29+
@openjdk-els
3030
Scenario: Check JAVA_APP_NAME can contain spaces (OPENJDK-1551)
3131
Given container is started with env
3232
| variable | value |
3333
| JAVA_APP_NAME | foo bar |
3434
Then container log should not contain exec: bar': not found
3535

36-
@ubi9
36+
@openjdk-els
3737
Scenario: Check default JAVA_APP_DIR (OPENJDK-2034)
3838
When container is ready
3939
Then available container log should contain INFO running in /deployments
4040

41-
@ubi9
41+
@openjdk-els
4242
Scenario: Check custom JAVA_APP_DIR (OPENJDK-2034)
4343
Given container is started with env
4444
| variable | value |
4545
| JAVA_APP_DIR | /home/default |
4646
Then available container log should contain INFO running in /home/default
4747

48-
@ubi9
48+
@openjdk-els
4949
Scenario: Check relative path JAVA_APP_DIR (OPENJDK-2034)
5050
Given container is started with env
5151
| variable | value |
5252
| JAVA_APP_DIR | . |
5353
Then available container log should contain INFO running in /home/default
5454

55-
@ubi9
55+
@openjdk-els
5656
Scenario: Check non-existent path JAVA_APP_DIR (OPENJDK-2034)
5757
Given container is started with env
5858
| variable | value |

modules/maven/s2i/tests/features/java_s2i.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# temporarily marking 'ignore' so these tests are skipped on GHA
22
@ignore
3-
@ubi9/openjdk-11
3+
@openjdk-els/openjdk-11-rhel9
44
@ubi9/openjdk-17
55
@ubi9/openjdk-21
66
Feature: Openshift OpenJDK S2I tests

0 commit comments

Comments
 (0)