Questo contenuto non è disponibile nella lingua selezionata.
Appendix A. Running the certification tests by using cockpit
Using cockpit to run the certification tests is optional.
Use the following procedure to set up and run the certification tests by using cockpit.
A.1. Configuring the system and running tests by using Cockpit Copia collegamentoCollegamento copiato negli appunti!
To run the certification tests by using Cockpit you need to upload the test plan to the SUT first. After running the tests, download the results and review them.
Although it is not mandatory, Red Hat recommends you to configure and use Cockpit for the certification process. Configuring cockpit greatly helps you to manage and monitor the certification process on the SUT.
A.1.1. Setting up the Cockpit server Copia collegamentoCollegamento copiato negli appunti!
Cockpit is a RHEL tool that lets you change the configuration of your systems as well as monitor their resources from a user-friendly web-based interface.
- You must set up Cockpit either on the SUT or a new system.
- Ensure that the Cockpit has access to SUT.
Prerequisites
- The Cockpit server has RHEL version 8 or 9 installed.
- You have installed the Cockpit plugin on your system.
- You have enabled the Cockpit service.
Procedure
- Log in to the system where you installed Cockpit.
Install the Cockpit RPM provided by the Red Hat Certification team.
dnf install redhat-certification-cockpit
# dnf install redhat-certification-cockpit
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
By default, Cockpit runs on port 9090.
Additional resources
For more information on installing and configuring Cockpit, see Getting Started with Cockpit and Introducing Cockpit.
A.1.2. Adding system under test to Cockpit Copia collegamentoCollegamento copiato negli appunti!
Adding the system under test (SUT) to Cockpit lets them communicate by using passwordless SSH.
Prerequisites
- You have the IP address or hostname of the SUT.
Procedure
- Enter http://<Cockpit_system_IP>:9090/ in your browser to launch the Cockpit web application.
- Enter the username and password, and then click Login.
Click the down-arrow on the logged-in cockpit user name→Add new host.
The dialog box displays.
- In the Host field, enter the IP address or hostname of the system.
- In the User name field, enter the name you want to assign to this system.
- Optional: Select the predefined color or select a new color of your choice for the host added.
- Click Add.
- Click Accept key and connect to let Cockpit communicate with the SUT through passwordless SSH.
- Enter the Password.
- Select the Authorize SSH Key checkbox.
- Click Log in.
Verification
On the left panel, click Tools →Red Hat Certification.
Verify that the SUT you just added displays below the Hosts section on the right.
A.1.3. Using the test plan to prepare the system under test for testing Copia collegamentoCollegamento copiato negli appunti!
Provisioning the system under test (SUT) includes the following operations:
- setting up passwordless SSH communication with cockpit
- installing the required packages on your system based on the certification type
- creating a final test plan to run, which is a list of common tests taken from both the test plan provided by Red Hat and tests generated on discovering the system requirements.
For instance, required software packages will be installed if the test plan is designed for certifying a software product.
Prerequisites
- You have downloaded the test plan provided by Red Hat.
Procedure
- Enter http://<Cockpit_system_IP>:9090/ in your browser address bar to launch the Cockpit web application.
- Enter the username and password, and then click Login.
-
Select Tools
Red Hat Certification in the left panel. - Click the Hosts tab, and then click the host under test on which you want to run the tests.
Click Provision.
A dialog box appears.
Click Upload, and then select the new test plan .xml file. Then, click Next. A successful upload message is displayed.
Optionally, if you want to reuse the previously uploaded test plan, then select it again to reupload.
NoteDuring the certification process, if you receive a redesigned test plan for the ongoing product certification, then you can upload it following the previous step. However, you must run
rhcert-cli clean all
in the Terminal tab before proceeding.-
In the Role field, select System under test and click Submit. By default, the file is uploaded to path:
/var/rhcert/plans/<testplanfile.xml>
A.1.4. Running the certification tests using Cockpit Copia collegamentoCollegamento copiato negli appunti!
Prerequisites
- You have prepared the system under test.
Procedure
- Enter http://<Cockpit_system_IP>:9090/ in your browser address bar to launch the Cockpit web application.
- Enter the username and password, and click Login.
-
Select Tools
Red Hat Certification in the left panel. - Click the Hosts tab and click on the host on which you want to run the tests.
Click the Terminal tab and select Run.
A list of recommended tests based on the test plan uploaded displays. The final test plan to run is a list of common tests taken from both the test plan provided by Red Hat and tests generated on discovering the system requirements.
When prompted, choose whether to run each test by typing
yes
orno
.You can also run particular tests from the list by typing
select
.
A.1.5. Reviewing and downloading the results file of the executed test plan Copia collegamentoCollegamento copiato negli appunti!
Procedure
- Enter http://<Cockpit_system_IP>:9090/ in your browser address bar to launch the Cockpit web application.
- Enter the username and password, and then click Login.
-
Select Tools
Red Hat Certification in the left panel. Click the Result Files tab to view the test results generated.
- Optional: Click Preview to view the results of each test.
-
Click Download beside the result files. By default, the result file is saved as
/var/rhcert/save/hostname-date-time.xml
.