From Fedora Project Wiki

Revision as of 10:54, 1 March 2019 by Lruzicka (talk | contribs) (Create a new test case to test modules)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

This test case tests that you can use a module to install software on your computer by using a recommended modular workflow.

Setup

  1. Make sure you have a clean installation of Fedora (all flavors are possible).
  2. Log onto the system as a superuser or a user with sudo rights.
  3. 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.

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

  1. List available modules:
    Execute dnf module list.
  2. Select a module to work with, as well as its stream and profile. As an example for this test case, we select the mariadb module (stream 10.4 and profile default)
  3. Try to install the module's stream and profile
    Execute dnf module install mariadb:10.4/default.
  4. Check that the module has been enabled.
    Execute dnf module list --enabled.
  5. Check that the module has been installed.
    Execute dnf module list --installed.
  6. If the module installs a standalone application, try to start it.

Expected Results

  1. The installation command must work without any error or error message.
  2. The module must be enabled (listed in the list of enabled modules).
  3. The module must be installed (listed in the list of installed modules).
  4. The installed application must be able to start.

Notes:

  • If the above described operations do not succeed and the reported error seems to be a modular problem, i.e. a missing profile or stream, broken dependencies, and similar problems, then please report a bug against this particular module in Fedora Modules.
  • If the problem seems to be DNF related, the file a bug against DNF.