From Fedora Project Wiki

Revision as of 16:17, 7 February 2025 by Sumantrom (talk | contribs) (Created page with "{{QA/Test_Case |description=This test case ensures that the package management system correctly handles installing an older package version from a custom repository and subsequently updating it from the standard Fedora repositories. |setup=Install the pre-release version of Fedora 42 that is to be tested on a bare metal system or virtual machine using the default Anaconda settings, except to reclaim all disk space in the process. |actions= Disable the updates repositorie...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

This test case ensures that the package management system correctly handles installing an older package version from a custom repository and subsequently updating it from the standard Fedora repositories.

Setup

Install the pre-release version of Fedora 42 that is to be tested on a bare metal system or virtual machine using the default Anaconda settings, except to reclaim all disk space in the process.

How to test

Disable the updates repositories to prevent the system from knowing about updates:

  • Edit the repository configuration files in /etc/yum.repos.d/ and set enabled=0 for all Fedora update repositories.
  • Remove the acpica-tools package if it is installed:
    • Run: dnf remove -y acpica-tools
  • Install the acpica-tools package from the fake repository while disabling all other repositories:
    • Run: dnf -y --disablerepo=* --enablerepo=openqa-testrepo-1 install acpica-tools
  • Verify that an older version of acpica-tools is installed:
    • Run: rpm -q acpica-tools
  • Enable the standard Fedora repositories again:
    • Edit /etc/yum.repos.d/ to set enabled=1 for the standard repositories.
  • Attempt to update the package using dnf update:
    • dnf update -y acpica-tools

Expected Results

The following must be true to consider this a successful test run

  1. The fake repository is correctly added to the system.
  2. The installation of the older acpica-tools package from the fake repository completes successfully.
  3. The package version installed is the expected older version.
  4. The update process successfully detects and upgrades acpica-tools to the latest version from Fedora's repositories.
  5. The updated package version matches the latest version available in the Fedora repositories.