Description
This test case verifies the functionality of the "dnf enable" and "dnf disable" commands.
Setup
Install the latest version of Fedora on a bare metal system using the default Anaconda settings except to reclaim all disk space in the process.
How to test
To enable a repository:
- Open a terminal window
- Type "dnf config-manager --disable <repository-name>" and press Enter, where <repository-name> is the name of a repository that is currently disabled.
- Type "dnf enable <repository-name>" and press Enter.
- Observe the output.
To disable a repository:
- Open a terminal window
- Type "dnf config-manager --enable <repository-name>" and press Enter, where <repository-name> is the name of a repository that is currently enabled.
- Type "dnf disable <repository-name>" and press Enter.
- Observe the output.
Expected Results
The following must be true to consider this a successful test run:
To enable a repository:
- The "dnf enable" command executes without error.
- The output confirms that the repository has been enabled.
- Packages from the enabled repository are now available for installation using DNF.
To disable a repository:
- The "dnf disable" command executes without error.
- The output confirms that the repository has been disabled.
- Packages from the disabled repository are no longer available for installation using DNF.
Optional
Optionally, perform exploratory testing by enabling and disabling different repositories and verifying that the expected packages are available or unavailable for installation. Additionally, test the commands with different options, such as "--verbose" and "--all", to verify their functionality.