From Fedora Project Wiki
(Write a test case for removing modules) |
m (Delete version and remark to gnome terminal) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{QA/Test_Case | {{QA/Test_Case | ||
|description=This test case | |description=This test case validates that a module can be removed from the system. | ||
|setup=To test this feature: | |setup=To test this feature: | ||
# Install a '''clean''' Fedora | # Install a '''clean''' Fedora. | ||
# Install one or several modules from the list of available modules. You can use the '''Install module''' test case as a prerequisite. | # Install one or several modules from the list of available modules. You can use the '''Install module''' test case as a prerequisite. | ||
|actions= | |actions= | ||
# Open a terminal session, either use | # Open a terminal session, either use terminal or a virtual console. | ||
# List installed modules using <code>dnf module list --installed</code> and choose one of them to do the next step. | # List installed modules using <code>dnf module list --installed</code> and choose one of them to do the next step. | ||
# Remove a module using <code>dnf module remove <module></code>. | # Remove a module using <code>dnf module remove <module></code>. | ||
Line 14: | Line 14: | ||
|results= | |results= | ||
The following requirements must be met: | The following requirements must be met: | ||
# All commands must | # All commands must execute without errors. | ||
# The removal command must remove the packages from the system. | # The removal command must remove the packages from the system. | ||
# The removed module '''must not''' be listed in the '''--installed''' list. | # The removed module '''must not''' be listed in the '''--installed''' list. |
Latest revision as of 11:25, 11 March 2019
Description
This test case validates that a module can be removed from the system.
Setup
To test this feature:
- Install a clean Fedora.
- Install one or several modules from the list of available modules. You can use the Install module test case as a prerequisite.
How to test
- Open a terminal session, either use terminal or a virtual console.
- List installed modules using
dnf module list --installed
and choose one of them to do the next step. - Remove a module using
dnf module remove <module>
. - List the enabled modules
dnf module list --enabled
. - List the installed modules
dnf module list --installed
. - Check that packages were really removed using
rpm -qa <module>
. - If the removed 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 removal command must remove the packages from the system.
- The removed module must not be listed in the --installed list.
- The removed module must still be listed in the --enabled list.
rpm -qa <module>
must not return any package.- If the module was an application or a service, it should not attempt to start.
Optional
You can try to reset the module into its original state using dnf module reset <module>
. In this case, the module should not appear in any lists, except dnf module list (--all)
.