From Fedora Project Wiki

(Save the work)
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 this test case [https://fedoraproject.org/wiki/User:Lruzicka/Draft/dnf_module_list here]
# 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/dnf_module_list here]
 
 
|actions=
 
|actions=
=== Enabling Modules: ===
+
=== Enabling Modules on the system===
# Enabling module <code>foo</code> with specific stream and profile
+
By default, all modules are disabled. To enable a module, run the following commands to enable the module:
    <code>dnf module enable foo:stream</code>
+
* <code>dnf module enable module:stream</code> enables a particular module stream.
    <code>dnf module enable foo:stream/profile </code>
+
* <code>dnf module enable foo:stream/profile </code> enables a particular module stream and profile.
=== Disabling Modules: ===
+
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 module <code>foo</code> with a specific stream and profile
+
 
    <code>dnf module disable foo:stream </code>
+
=== Disabling Modules===
    <code>dnf module disable foo:stream/profile </code>
+
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 foo:stream </code> disables a particular module stream.
 +
<code>dnf module disable foo:stream/profile </code> 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:
 +
* <code>dnf module install module:stream</code> to install a module with a particular stream.
 +
* <code>dnf module install foo:stream/profile </code> 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:
 +
* <code>dnf module remove module:stream</code> to remove a particular stream of the module.
 +
* <code>dnf module remove foo:stream/profile </code> 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.
 
    
 
    
 
 
|results=
 
|results=
 
The commands execute without error  
 
The commands execute without error  

Revision as of 10:13, 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

The commands execute without error

  1. The first command prints "foo:stream is enabled".
  2. The second command prints "foo:stream/profile is enabled"
  3. The third command prints "foo:stream is disbaled"
  4. The fourth command prints "foo:stream/profile is disabled"

Optional

Try entering random profile names