(Created page with "{{QA/Test_Case |description= This test is a follow-up for the QA:Tescase_Modularity_module_defaults test case and tests that all system modules have their default definiti...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{QA/Test_Case | {{QA/Test_Case | ||
|description= This test is a follow-up for the [[QA: | |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= | |setup= | ||
# Make sure you have a clean installation of Fedora (all flavors are possible). | # 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. | # 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. | # 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'''. | '''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'''. | ||
|actions= | |actions= | ||
<ol> | <ol> | ||
<li>List | <li>List a module: <br/> | ||
Execute <code> dnf module list</code>. </li> | Execute <code> dnf module list <module></code>. </li> | ||
<li> | <li>Read the information on streams and profiles.<br/> | ||
<li>Check | <li>Check if the a corresponding yaml file is present in the `fedora-module-defaults` directory that you have cloned before. </li> | ||
<li>Check that the yaml file is correctly formed (see below).</li> | |||
<li> | <li>Check that the settings given by the yaml file correspond with the system settings.</li> | ||
<li>Check that the | |||
</ol> | </ol> | ||
|results= | |results= | ||
# The | # All system modules '''must have their yaml files''' in the above mentioned directory. | ||
# The | # The yaml file contains a `document` section where the value is `modulemd-defaults`. | ||
# | # The yaml file contains a `version` section and the value is `1`. | ||
# The yaml file contains a `data` section, where the defaults are defined. | |||
# The module | # The `data` section contains the `module` 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 a `stream` section and the value matches the default stream reported by the installed system. If default stream is not defined, there '''must be no''' `stream` section in the file. See the default stream `1.10` defined in the example yaml file below. | |||
# The `data` section contains the `profiles` section, where streams and their default profiles are given. For example, `1.10 [default]` means that the module has a stream called `1.10` and that stream has a default profile called `default`. See the example yaml file. The yaml file definition '''must''' correspond with the situation reported by `dnf module list <module>` on the installed system. | |||
'''An example yaml file:''' | |||
'''Notes''': | <pre> | ||
* | document: modulemd-defaults | ||
version: 1 | |||
data: | |||
module: ant | |||
stream: 1.10 | |||
profiles: | |||
1.10: [default] | |||
</pre> | |||
'''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 [https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora%20Modules in Fedora Modules]. | |||
}} | }} |
Latest revision as of 12:02, 2 August 2019
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.