From Fedora Project Wiki
Description
This test case proves that a module can be removed from the system.
Setup
To test this feature:
- Install a clean Fedora 30 or newer.
- 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 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 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 run 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)
.