Rechercher

Ce contenu n'est pas disponible dans la langue sélectionnée.

Chapter 7. Configuring the systems and running tests using RHCert CLI Tool

download PDF

To complete the certification process using CLI, you must prepare the host under test (HUT) and test server, run the tests, and retrieve the test results.

7.1. Using the test plan to prepare the host under test for testing

Running the provision command performs a number of operations, such as setting up passwordless SSH communication with the test server, installing the required packages on your system based on the certification type, and 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 hardware packages will be installed if the test plan is designed for certifying a hardware product.

Prerequisites

  • You have the hostname or the IP address of the test server.

Procedure

  1. Run the provision command in either way. The test plan will automatically get downloaded to your system.

    • If you have already downloaded the test plan:

      # rhcert-provision <path_to_test_plan_document>

      Replace <path_to_test_plan_document> with the test plan file saved on your system.

      Follow the on-screen instructions.

    • If you have not downloaded the test plan:

      # rhcert-provision

      Follow the on-screen instructions and enter your Certification ID when prompted.

  2. When prompted, provide the hostname or the IP address of the test server to set up passwordless SSH. You are prompted only the first time you add a new system.

7.2. Using the test plan to prepare the test server for testing

Running the Provision command enables and starts the rhcertd service, which configures services specified in the test suite on the test server, such as iperf for network testing, and an nfs mount point used in kdump testing.

Prerequisites

  • You have the hostname or IP address of the host under test.

Procedure

  1. Run the provision command by defining the role, “test server”, to the system you are adding.

    This is required only for provisioning the test server.

    # rhcert-provision --role test-server <path_to_test_plan_document>

    Replace <path_to_test_plan_document> with the test plan file saved on your system.

7.3. Running the certification tests using CLI

Procedure

  1. Run the following command:

    # rhcert-run
  2. When prompted, choose whether to run each test by typing yes or no.

    You can also run particular tests from the list by typing select.

Note

After a test reboot, rhcert is running in the background to verify the image. Use tail -f /var/log/rhcert/RedHatCertDaemon.log to see the current progress and status of the verification.

7.4. Submitting the test results file

Procedure

  1. Log in to authenticate your device.

    Note

    Logging in is mandatory to submit the test results file.

    # rhcert-cli login
    1. Open the generated URL in a new browser window or tab.
    2. Enter the login and password and click Log in.
    3. Click Grant access.

      Device log in successful message displays.

    4. Return to the terminal and enter yes to the Please confirm once you grant access prompt.
  2. Submit the result file.

    # rhcert-submit

    When prompted, enter your Certification ID.

Red Hat logoGithubRedditYoutubeTwitter

Apprendre

Essayez, achetez et vendez

Communautés

À propos de la documentation Red Hat

Nous aidons les utilisateurs de Red Hat à innover et à atteindre leurs objectifs grâce à nos produits et services avec un contenu auquel ils peuvent faire confiance.

Rendre l’open source plus inclusif

Red Hat s'engage à remplacer le langage problématique dans notre code, notre documentation et nos propriétés Web. Pour plus de détails, consultez leBlog Red Hat.

À propos de Red Hat

Nous proposons des solutions renforcées qui facilitent le travail des entreprises sur plusieurs plates-formes et environnements, du centre de données central à la périphérie du réseau.

© 2024 Red Hat, Inc.