From Fedora Project Wiki
(Finish test case) |
(Edit after a review by sgallagh) |
||
Line 20: | Line 20: | ||
|results= | |results= | ||
# Modularity and modular repositories should be enabled ''' | # Modularity and modular repositories should be enabled by '''default'''. If it for does not work for any reason, the test should be considered a '''fail'''. | ||
# All above commands must run without any errors and they should provide the needed info. If they throw any error, report a bug, and the test | # All above commands must run without any errors and they should provide the needed info. If they throw any error, report a bug, and the test '''fails'''. | ||
# <code>dnf module list (--all)</code> lists all modules and provides details, such as stream, version and profile. | # <code>dnf module list (--all)</code> lists all modules and provides details, such as stream, version and profile. If this command returns an empty list, the test should be considered a '''fail'''. | ||
# <code>dnf module list --enabled</code> lists all enabled modules. The result can be an empty list, if there are no enabled modules. | # <code>dnf module list --enabled</code> lists all enabled modules. The result can be an empty list, if there are no enabled modules. | ||
# <code>dnf module list --disabled</code> lists all disabled modules. The result can be an empty list, if there are no disabled modules. | # <code>dnf module list --disabled</code> lists all disabled modules. The result can be an empty list, if there are no disabled modules. | ||
# <code>dnf module list --installed</code> lists all installed modules. The result can be an empty list, if there are no installed modules. | # <code>dnf module list --installed</code> lists all installed modules. The result can be an empty list, if there are no installed modules. | ||
}} | }} |
Revision as of 08:58, 13 August 2018
Description
This test case will show if modularity is enabled in Fedora and that the system provides basic information about the available modules.
Setup
- Install any of the Fedora spins, for example Workstation or Server.
- Log onto the system.
- Run a terminal application, such as gnome-terminal. The following test will use dnf to work with the modules.
Note: For the time's being, users can work with modules using dnf. In the future, other package managers will be able to deal with it. Until then, do not attempt to test this approach using tools other than dnf.
How to test
- Check that dnf provides you with a list of all modules available to the system:
To do so, executednf module list
. You can also use the--all
option, the results should be the same. - Check that dnf provides you with a list of modules that have been enabled on the system.
Executednf module list --enabled
to get the list. - Check that dnf provides you with a list of modules that have been disabled on the system.
Executednf module list --disabled
to get the list. - Check that dnf provides you with a list of modules that are installed on the system.
Executednf module list --installed
to get the list.
Expected Results
- Modularity and modular repositories should be enabled by default. If it for does not work for any reason, the test should be considered a fail.
- All above commands must run without any errors and they should provide the needed info. If they throw any error, report a bug, and the test fails.
dnf module list (--all)
lists all modules and provides details, such as stream, version and profile. If this command returns an empty list, the test should be considered a fail.dnf module list --enabled
lists all enabled modules. The result can be an empty list, if there are no enabled modules.dnf module list --disabled
lists all disabled modules. The result can be an empty list, if there are no disabled modules.dnf module list --installed
lists all installed modules. The result can be an empty list, if there are no installed modules.