From Fedora Project Wiki

< User:Lruzicka

Revision as of 14:13, 8 March 2019 by Lruzicka (talk | contribs) (Write a test case for system update.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

This test case proves that a modular system can be correctly updated or upgraded.

Setup

To test this feature:

  1. Install a clean Fedora 30 or newer.
  2. Install one or more modules from the list of available modules, but choose a non-default stream and profile. You can use Installation testcase as a prerequisite.

How to test

  1. Open a terminal session, either use gnome-terminal or a virtual console.
  2. List installed modules using dnf module list --installed in order to find out which module stream and profile you are using.
  3. When updating the system:
    1. Update the system using dnf update.
  4. When upgrading the system:
    1. Upgrade the system following the procedure in in this test case.
  5. Reboot the computer.
  6. List the enabled modules dnf module list --enabled.
  7. List the installed modules dnf module list --installed.

Expected Results

The following requirements must be met:

  1. All commands must run without errors.
  2. Depending on the procedure, the system is up-to-date or upgraded.
  3. The installed module must still be listed in both --enabled and --installed lists.
  4. The installed modules must still be installed using the same stream as it did before the operation. For example, if nodejs:8 was installed on the system, the updated or upgraded system must still have nodejs:8 installed, however the versions can be replaced by newer version if such version appears in the selected stream.
  5. The installed modules must not be removed during update or system upgrade.