From Fedora Project Wiki
(Write test case for module switching.) |
(minor edits) |
||
Line 1: | Line 1: | ||
{{QA/Test_Case | {{QA/Test_Case | ||
|description=This test case | |description=This test case validates that one module stream can be replaced with another. | ||
|setup=To test this feature: | |setup=To test this feature: | ||
# Install a '''clean''' Fedora 30 or newer. | # Install a '''clean''' Fedora 30 or newer. | ||
Line 16: | Line 16: | ||
|results= | |results= | ||
The following requirements must be met: | The following requirements must be met: | ||
# All commands must | # All commands must execute without errors. | ||
# The new module stream must be shown in the '''--installed''' list. | # The new module stream must be shown in the '''--installed''' list. | ||
# The new module stream must be shown in the '''--enabled''' list. | # The new module stream must be shown in the '''--enabled''' list. |
Revision as of 14:48, 8 March 2019
Description
This test case validates that one module stream can be replaced with another.
Setup
To test this feature:
- Install a clean Fedora 30 or newer.
- Pick one or several modules from the list of available modules with at least two available streams and install one of the streams. You can use the Install module test case as a prerequisite.
How to test
- Open a terminal session, either use gnome-terminal or a virtual console.
- List installed modules using
dnf module list --installed
and choose one of them to do the next step. - Remove the module using
dnf module remove <module>
. - Reset the module using
dnf module reset <module>
. - Install the modules with a different stream using
dnf module install <module>:<new_stream>
. - List the enabled modules
dnf module list --enabled
. - List the installed modules
dnf module list --installed
. - Check that correct packages are installed on the system using
rpm -qa <module>
. - If the module was an application or a service, try to run it.
Expected Results
The following requirements must be met:
- All commands must execute without errors.
- The new module stream must be shown in the --installed list.
- The new module stream must be shown in the --enabled list.
rpm -qa <module>
must show the new version of the package.- If the module was an application or a service, it should attempt to start.