From Fedora Project Wiki

(Save the work)
(Finish the test)
Line 3: Line 3:
|setup=  
|setup=  
# To start and learn how to list modules, follow the instructions in this test case [https://fedoraproject.org/wiki/User:Lruzicka/Draft/dnf_module_list here]
# To start and learn how to list modules, follow the instructions in this test case [https://fedoraproject.org/wiki/User:Lruzicka/Draft/dnf_module_list here]
#
 
|actions=
|actions=
=== Enabling Modules on the system===
=== Enabling Modules on the system===
Line 30: Line 30:
    
    
|results=
|results=
The commands execute without error
All above commands execute without errors.
# The first command prints "foo:stream is enabled".
# When you enable the module (:stream/profile), a confirmation  "module:stream/profile is enabled" appears. The module must be on the list of enabled modules.
# The second command prints "foo:stream/profile is enabled"
# When you disable the module (:stream/profile), a confirmation "module:stream/profile is disabled" appears. The module must not be shown on the list of enabled modules.
# The third command prints "foo:stream is disbaled"
# When you install the module (:stream/profile), the module must successfully install in a selected stream or stream and profile. The module must be listed on the list of installed modules.
# The fourth command prints "foo:stream/profile is disabled"
# When you remove the module (:stream/profile), the module in this stream or stream and profile must be removed from the system. The module must not be listed on the list of installed modules.
|optional= Try entering random profile names
 
|optional= Try various modules and streams/profiles.
}}
}}

Revision as of 11:53, 3 August 2018

Description

This test checks the modular operations on a Fedora system.

Setup

  1. To start and learn how to list modules, follow the instructions in this test case here

How to test

Enabling Modules on the system

By default, all modules are disabled. To enable a module, run the following commands to enable the module:

  • dnf module enable module:stream enables a particular module stream.
  • dnf module enable foo:stream/profile enables a particular module stream and profile.

Check, that the enabled module appears in the list of enabled modules and that the stream and profile match your selection. If you have not specified the profile, the default profile should be enabled.

Disabling Modules

To disable a module, you have to have enabled some of them. If there are enabled modules, try to disable them using the commands:

  • dnf module disable foo:stream disables a particular module stream.
  • dnf module disable foo:stream/profile disables a particular module stream and profile.

Check, that the disabled module appears in the list of disabled modules and that the disabled stream and profile of the module matches your selection.

Installing Modules

To install a module, use the following commands:

  • dnf module install module:stream to install a module with a particular stream.
  • dnf module install foo:stream/profile to install a module with a particular stream and profile.

Check, that the module is correctly installed, appears in the list of installed modules and shows the correct stream and profile.

Removing Modules

To remove a module, use the following commands:

  • dnf module remove module:stream to remove a particular stream of the module.
  • dnf module remove foo:stream/profile to remove a particular stream and profile of the module.

Check, that the module is correctly removed - it does not appear in the list of installed modules.

Expected Results

All above commands execute without errors.

  1. When you enable the module (:stream/profile), a confirmation "module:stream/profile is enabled" appears. The module must be on the list of enabled modules.
  2. When you disable the module (:stream/profile), a confirmation "module:stream/profile is disabled" appears. The module must not be shown on the list of enabled modules.
  3. When you install the module (:stream/profile), the module must successfully install in a selected stream or stream and profile. The module must be listed on the list of installed modules.
  4. When you remove the module (:stream/profile), the module in this stream or stream and profile must be removed from the system. The module must not be listed on the list of installed modules.

Optional

Try various modules and streams/profiles.