Description
This test is a follow-up for the QA:Testcase_Modularity_module_defaults test case and tests that all system modules have their default definition yaml files in the fedora-module-defaults repository at Pagure.
Setup
- Make sure you have a clean installation of Fedora (all flavors are possible).
- Log onto the system as a superuser or a user with sudo rights.
- Run a terminal application, such as gnome-terminal, or switch to a virtual console (Ctrl-Alt-F3). The following test is based on the DNF package manager.
- Clone the definition yaml files, using
git clone https://pagure.io/releng/fedora-module-defaults
onto your system.
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
- List a module:
Executednf module list <module>
. - Read the information on streams and profiles.
- Check if the a corresponding yaml file is present in the
fedora-module-defaults
directory that you have cloned before. - Check that the yaml file is correctly formed (see below).
- Check that the settings given by the yaml file correspond with the system settings.
Expected Results
- All system modules must have their yaml files in the above mentioned directory.
- The yaml file contains a
document
section where the value ismodulemd-defaults
. - The yaml file contains a
version
section and the value is1
. - The yaml file contains a
data
section, where the defaults are defined. - The
data
section contains themodule
section where the value is the name of the module. It must match the name on the installed system. - If the module has a default stream defined, then the
data
section contains astream
section and the value matches the default stream reported by the installed system. If default stream is not defined, there must be nostream
section in the file. See the default stream1.10
defined in the example yaml file below. - The
data
section contains theprofiles
section, where streams and their default profiles are given. For example,1.10 [default]
means that the module has a stream called1.10
and that stream has a default profile calleddefault
. See the example yaml file. The yaml file definition must correspond with the situation reported bydnf module list <module>
on the installed system.
An example yaml file:
document: modulemd-defaults version: 1 data: module: ant stream: 1.10 profiles: 1.10: [default]
Notes:
- If you find any discrepancies between the module defaults definitions and the real situation on the installed system, or if the yaml definition does not exist at all, please report a bug against this particular module in Fedora Modules.