Chapter 8. Setting up the test environment for non-containerized application testing
The first step towards certifying your product is setting up the environment where you can run the tests.
The test environment consists of a system in which all the certification tests are run.
8.1. Setting up a system that acts as a system under test
A system on which the product that needs certification is installed or configured is referred to as the system under test (SUT).
Prerequisites
- The SUT has RHEL version 8 or later installed. For convenience, Red Hat provides kickstart files to install the SUT’s operating system. Follow the instructions in the file that is appropriate for your system before launching the installation process.
Procedure
Configure the Red Hat Certification repository:
Use your RHN credentials to register your system using Red Hat Subscription Management:
subscription-manager register
$ subscription-manager register
Copy to Clipboard Copied! Display the list of available subscriptions for your system:
subscription-manager list --available*
$ subscription-manager list --available*
Copy to Clipboard Copied! - Search for the subscription which provides the Red Hat Certification (for RHEL Server) repository and make a note of the subscription and its Pool ID.
Attach the subscription to your system:
subscription-manager attach --pool=<pool_ID>
$ subscription-manager attach --pool=<pool_ID>
Copy to Clipboard Copied! Replace the pool_ID with the Pool ID of the subscription.
You don’t have to attach the subscription to your system, if you enable the option Simple content access for Red Hat Subscription Management. For more details, see How do I enable Simple Content Access for Red Hat Subscription Management?
Subscribe to the Red Hat Certification channel:
subscription-manager repos --enable=cert-1-for-rhel-<VERSION>-<HOSTTYPE>-rpms
$ subscription-manager repos --enable=cert-1-for-rhel-<VERSION>-<HOSTTYPE>-rpms
Copy to Clipboard Copied! Replace VERSION with the RHEL version number on the SUT
subscription-manager repos --enable=cert-1-for-rhel-9-<HOSTTYPE>-rpms
subscription-manager repos --enable=cert-1-for-rhel-9-<HOSTTYPE>-rpms
Copy to Clipboard Copied! To find out the system architecture, run
uname -m
$ uname -m
Copy to Clipboard Copied! Replace HOSTTYPE with the system architecture.
subscription-manager repos --enable=cert-1-for-rhel-<VERSION>-x86_64-rpms
$ subscription-manager repos --enable=cert-1-for-rhel-<VERSION>-x86_64-rpms
Copy to Clipboard Copied! Install the software test suite package:
NoteThis step is applicable only for RHEL version 9 or later.
dnf install redhat-certification-software
$ dnf install redhat-certification-software
Copy to Clipboard Copied!