From Fedora Project Wiki

(Created page with "{{QA/Test_Case |description= Enabling and Disabling Modules in Fedora Server |setup= # Grab a Fedora Server and continue to install on a VM or Baremetal # Login from the Cock...")
 
m (adding category for modularity acceptance test cases)
 
(18 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description= Enabling and Disabling Modules in Fedora Server
|description= This test checks the modular operations on a Fedora system.
|setup=  
|setup=  
# Grab a Fedora Server and continue to install on a VM or Baremetal
# To start and learn how to list modules, follow the instructions in [[QA:Testcase_Modularity_module_list|this test case]].
# Login from the Cockpit Web-UI or server with the created user or root
 
# Check all available module [https://fedoraproject.org/wiki/User:Sumantrom/Draft/FMS_module_list here]
|actions=
|actions=
=== Enabling Modules: ===
=== Enabling Modules on the system===
# Enabling without any specific stream
By default, all modules are disabled. To enable a module, run the following commands to enable the module:
  <code>dnf module enable module</code>
* <code>sudo dnf module enable module:stream</code> enables a particular module stream.
# Enabling with specific stream
Check, that the enabled module appears in the list of enabled modules and that the stream matches your selection. If you have not specified the profile, the default profile should be enabled.
  <code>dnf module enable module:stream</code>


=== Disabling Modules: ===
=== Disabling Modules===
# Disabling without any specifc stream
To disable a module, you have to have enabled some of them. If there are enabled modules, try to disable them using the commands:
      <code>dnf module disable module </code>  
<code>sudo dnf module disable module:stream </code> disables a particular module stream.
# Disabling with a specific stream  
Check, that the disabled module appears in the list of disabled modules, that it disappears from the list of enabled modules, and that the disabled stream and profile of the module matches your selection.
    <code>dnf module disable module:stream </code>
 


=== Resetting Modules===
To reset a module, use the following command:
* <code>sudo dnf module reset <module></code> resets the module into the basic state.
Check that the reset module does not appear in either installed, enabled or disabled modules.
 
|results=
|results=
The commands execute without error
All above commands execute without errors.
# The first command prints <foo> is enabled.
# When you enable the module (:stream), a confirmation  "module:stream is enabled" appears. The module must be on the list of enabled modules.
{{#tag:pre|
# When you disable the module (:stream), a confirmation "module:stream is disabled" appears. The module must not be shown on the list of enabled modules.
dnf module enable nodejs:8                                                                                                                                                                                                     
# When you reset the module, the module must not appear in any lists, except the <code>dnf module list</code>.
Last metadata expiration check: 3:17:36 ago on Fri 10 Nov 2017 03:35:01 AM IST.                                                                                                                                                                    
 
'nodejs:8' is enabled
|optional= Try various modules and streams/profiles.  
}}
# The second command prints <foo> is disabled
{{#tag:pre|
dnf module disable nodejs:8                                                                                                                                                                                                     
Last metadata expiration check: 2:56:48 ago on Fri 10 Nov 2017 03:35:01 AM IST.                                                                                                                                                                    
'nodejs:8' is disabled
}}
|optional=Optionally provide hints for exploratory testing.
}}
}}
[[Category:Modularity_Acceptance_Test_Cases]]

Latest revision as of 19:14, 10 February 2022

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.

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:

  • sudo dnf module enable module:stream enables a particular module stream.

Check, that the enabled module appears in the list of enabled modules and that the stream matches 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:

  • sudo dnf module disable module:stream disables a particular module stream.

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

Resetting Modules

To reset a module, use the following command:

  • sudo dnf module reset <module> resets the module into the basic state.

Check that the reset module does not appear in either installed, enabled or disabled modules.

Expected Results

All above commands execute without errors.

  1. When you enable the module (:stream), a confirmation "module:stream is enabled" appears. The module must be on the list of enabled modules.
  2. When you disable the module (:stream), a confirmation "module:stream is disabled" appears. The module must not be shown on the list of enabled modules.
  3. When you reset the module, the module must not appear in any lists, except the dnf module list.

Optional

Try various modules and streams/profiles.