self_check test

The self_check test confirms that all required software packages for certification are installed and unaltered. You run this test to ensure that the test environment is fully prepared for certification testing.

What the test covers
The self-check test confirms that all required software packages for certification are installed and unaltered. This ensures the test environment is ready for certification. Certification packages must not be modified for testing or any other purpose.
What the test does

The test has several subtests that perform the following tasks:

  • Checks for valid certification packages
  • Verifies the integrity of the certification rpm files and highlights the changes, if any
Running the test

When you run the test suite, the rhcert tool runs the self_check test automatically as part of every run. The self_check test runs before any other test. You must add the output of the self_check test as part of the test suite logs. If not, Red Hat will reject the test logs that do not contain the output of the self_check test. Use the following command to run the test manually, if required:

$ rhcert-cli run --test self_check
Run time
The self_check test takes around 1 minute to run provided you haven’t modified any of the certification files.
Success Criteria
The test environment includes all the necessary certification packages and the certification files have not been modified.