This repository holds the collection of tests run against Red Hat's Build of OpenJDK Containers on different versions of Red Hat Enterprise Linux (RHEL). The supported version of RHEL are 7.9, 8.8 and 9.2
Supported Containers:
Operating System version | OpenJDK Version | Runtime of Full JDK | Link to Container |
---|---|---|---|
Rhel 7 | 8 | Full JDK | openjdk18-openshift |
Rhel 7 | 11 | Full JDK | openjdk-11-rhel7 |
UBI 8 | 8 | Full JDK | openjdk-8 |
UBI 8 | 11 | Full JDK | openjdk-11 |
UBI 8 | 17 | Full JDK | openjdk-17 |
UBI 8 | 8 | Runtime | openjdk-8-runtime |
UBI 8 | 11 | Runtime | openjdk-11-runtime |
UBI 8 | 17 | Runtime | openjdk-17-runtime |
UBI 9 | 11 | Full JDK | openjdk-11 |
UBI 9 | 17 | Full JDK | openjdk-17 |
UBI 9 | 11 | Runtime | openjdk-11-runtime |
UBI 9 | 17 | Runtime | openjdk-17-runtime |
How to run the container testsuite.
TODO
The tests 700 - 705 are made for testing whether the Red Hat's Build of OpenJDK containers are FIPS-compatible and behave as expected (for example when setting FIPS in the container manually). The main purpose of these tests, however, is to assure that, in the containers, there is the correct set of cryptographic algorithms and providers available.
The main file that is concerned with this testing is containersQa/algorithmTesting/CheckAlgorithms.java
.
(Note that this file can also work on its own - even outside of containers, but it needs containersQa/algorithmTesting/cipherList.java
to work.)
It was originally a part of the rhqe
test suite, but now, it is located here.
As its name says, it is used for checking algorithms (and providers).
It can either just list the algorithms/providers or assert them against a config file.
Running the class with --help
brings up a help message explaining the different arguments.
There are currently 4 different config files:
Config File | Description |
---|---|
containersQa/algorithmTesting/el8ConfigFips.txt |
Used on RHEL 8 hosts set to FIPS mode. |
containersQa/algorithmTesting/el8ConfigLegacy.txt |
Used on RHEL 8 hosts without FIPS mode. |
containersQa/algorithmTesting/el9ConfigFips.txt |
Used on RHEL 9 hosts set to FIPS mode. |
containersQa/algorithmTesting/el9ConfigLegacy.txt |
Used on RHEL 9 hosts without FIPS mode. |
It should be straightforward to create new config files for these tests as needed - it is explained in the help message of algorithmTesting.CheckAlgorithms
.