Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/image-workflow-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: clear docker credentials
run: docker logout

# - name: Behave Tests
# run: |
# echo /home/runner/work/_temp/openshift-bin >> $GITHUB_PATH
# cekit -v --descriptor ${{ inputs.image }}.yaml test behave --steps-url https://github.com/jmtd/behave-test-steps
- name: Behave Tests
run: |
echo /home/runner/work/_temp/openshift-bin >> $GITHUB_PATH
cekit -v --descriptor ${{ inputs.image }}.yaml test behave --steps-url https://github.com/jmtd/behave-test-steps
10 changes: 0 additions & 10 deletions .github/workflows/ubi9-openjdk-17-runtime.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .github/workflows/ubi9-openjdk-17.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .github/workflows/ubi9-openjdk-21-runtime.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .github/workflows/ubi9-openjdk-21.yml

This file was deleted.

16 changes: 8 additions & 8 deletions modules/jdk/tests/features/openjdk.feature
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Feature: Miscellaneous OpenJDK-related unit tests

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

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

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

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

@ubi9
@openjdk-els
Scenario: Ensure tar is installed (OPENJDK-1165)
When container is started with args
| arg | value |
| command | tar |
Then available container log should not contain command not found

@ubi9
@openjdk-els
Scenario: Ensure tzdata RPM is properly installed (OPENJDK-2519)
When container is started with args
| arg | value |
Expand Down
2 changes: 1 addition & 1 deletion modules/jvm/tests/features/gc.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ubi9
@openjdk-els
Feature: Openshift OpenJDK GC tests

Scenario: Check default GC configuration
Expand Down
12 changes: 6 additions & 6 deletions modules/jvm/tests/features/memory.feature
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
Feature: OPENJDK-559 JVM Memory tests

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

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

@ubi9
@openjdk-els
Scenario: Ensure JAVA_MAX_MEM_RATIO accepts Integers
Given container is started with env
| variable | value |
| JAVA_MAX_MEM_RATIO | 90 |
Then container log should contain -XX:MaxRAMPercentage=90.0

@ubi9
@openjdk-els
Scenario: Ensure JAVA_MAX_MEM_RATIO=0 disables parameter
Given container is started with env
| variable | value |
| JAVA_MAX_MEM_RATIO | 0 |
Then container log should not contain -XX:MaxRAMPercentage

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

# Not the runtime images
@ubi9/openjdk-11
@openjdk-els/openjdk-11-rhel9
@ubi9/openjdk-17
@ubi9/openjdk-21
Scenario: Ensure Maven doesn't use MaxRAMPercentage=80
Expand Down
18 changes: 9 additions & 9 deletions modules/jvm/tests/features/runtime.feature
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
@ubi9/openjdk-11
@openjdk-els/openjdk-11-rhel9
@ubi9/openjdk-17
@ubi9/openjdk-21
Feature: Openshift OpenJDK Runtime tests

@ubi9
@openjdk-els
Scenario: Check JAVA_OPTS overrides defaults
Given container is started with env
| variable | value |
| JAVA_OPTS | --show-version |
Then container log should not contain -XX:MaxRAMPercentage

@ubi9
@openjdk-els
Scenario: Check empty JAVA_OPTS overrides defaults
Given container is started with env
| variable | value |
| JAVA_OPTS | |
Then container log should not contain -XX:MaxRAMPercentage

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

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

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

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

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

@ubi9
@openjdk-els
Scenario: Check non-existent path JAVA_APP_DIR (OPENJDK-2034)
Given container is started with env
| variable | value |
Expand Down
2 changes: 1 addition & 1 deletion modules/maven/s2i/tests/features/java_s2i.feature
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# temporarily marking 'ignore' so these tests are skipped on GHA
@ignore
@ubi9/openjdk-11
@openjdk-els/openjdk-11-rhel9
@ubi9/openjdk-17
@ubi9/openjdk-21
Feature: Openshift OpenJDK S2I tests
Expand Down
2 changes: 1 addition & 1 deletion modules/run/tests/features/java.runtime.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ubi9/openjdk-11
@openjdk-els/openjdk-11-rhel9
@ubi9/openjdk-17
@ubi9/openjdk-21
Feature: Openshift OpenJDK Runtime tests (OPENJDK-474)
Expand Down
2 changes: 1 addition & 1 deletion modules/run/tests/features/run.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ubi9
@openjdk-els
Feature: OpenJDK run script tests
Scenario: Ensure command-line options containing 'password' are masked in logs
Given container is started with env
Expand Down
2 changes: 1 addition & 1 deletion modules/s2i/core/tests/features/java_s2i_quarkus.feature
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# builder only
@ubi9/openjdk-11
@openjdk-els/openjdk-11-rhel9
@ubi9/openjdk-17
@ubi9/openjdk-21
Feature: Openshift OpenJDK S2I tests (Quarkus-based)
Expand Down
2 changes: 1 addition & 1 deletion modules/s2i/core/tests/features/s2i-core.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ubi9/openjdk-11
@openjdk-els/openjdk-11-rhel9
@ubi9/openjdk-17
@ubi9/openjdk-21
Feature: Openshift S2I tests
Expand Down
2 changes: 1 addition & 1 deletion modules/user/tests/features/general.feature
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Feature: Miscellaneous general settings unit tests

@ubi9
@openjdk-els
Scenario: Check the attributes of /home/default using stat
When container is started with args
| arg | value |
Expand Down
4 changes: 2 additions & 2 deletions tests/features/imagebasic.feature
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Feature: Tests for all openshift images

@ubi9
@openjdk-els
Scenario: Check that common labels are correctly set
Given image is built
# UBI base image versions are the RHEL version, e.g. "9.2", whereas all of
Expand All @@ -9,7 +9,7 @@ Feature: Tests for all openshift images
And the image should contain label name containing value openjdk

# builder-only test
@ubi9/openjdk-11
@openjdk-els/openjdk-11-rhel9
@ubi9/openjdk-17
@ubi9/openjdk-21
Scenario: Check that builder labels are correctly set
Expand Down
2 changes: 1 addition & 1 deletion tests/features/java/ports.feature
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ubi9/openjdk-11
@openjdk-els/openjdk-11-rhel9
@ubi9/openjdk-17
@ubi9/openjdk-21
Feature: Openshift OpenJDK port tests
Expand Down
Loading