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...")
 
No edit summary
Line 7: Line 7:
|actions=
|actions=
=== Enabling Modules: ===
=== Enabling Modules: ===
# Enabling without any specific stream
# Enabling module <code> foo </code> without any specific stream
   <code>dnf module enable module</code>
   <code>dnf module enable foo</code>
# Enabling with specific stream
# Enabling module <code>foo</code> with specific stream
   <code>dnf module enable module:stream</code>
   <code>dnf module enable foo:stream</code>


=== Disabling Modules: ===
=== Disabling Modules: ===
# Disabling without any specifc stream  
# Disabling module <code>foo</code>without any specifc stream  
       <code>dnf module disable module </code>  
       <code>dnf module disable foo</code>  
# Disabling with a specific stream  
# Disabling module <code>foo</code> with a specific stream  
     <code>dnf module disable module:stream </code>
     <code>dnf module disable foo:stream </code>
    
    


|results=
|results=
The commands execute without error  
The commands execute without error  
# The first command prints <foo> is enabled.
# The first command prints "foo is enabled".
{{#tag:pre|
dnf module enable nodejs:8                                                                                                                                                                                                     
Last metadata expiration check: 3:17:36 ago on Fri 10 Nov 2017 03:35:01 AM IST.                                                                                                                                                                     
'nodejs:8' is enabled
}}
# The second command prints <foo> is disabled
# 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.
|optional=Optionally provide hints for exploratory testing.
}}
}}

Revision as of 17:26, 9 April 2018

Description

Enabling and Disabling Modules in Fedora Server

Setup

  1. Grab a Fedora Server and continue to install on a VM or Baremetal
  2. Login from the Cockpit Web-UI or server with the created user or root
  3. Check all available module here

How to test

Enabling Modules:

  1. Enabling module foo without any specific stream
 dnf module enable foo
  1. Enabling module foo with specific stream
 dnf module enable foo:stream

Disabling Modules:

  1. Disabling module foowithout any specifc stream
     dnf module disable foo 
  1. Disabling module foo with a specific stream
    dnf module disable foo:stream 

Expected Results

The commands execute without error

  1. The first command prints "foo is enabled".
  2. The second command prints <foo> is disabled

Optional

Optionally provide hints for exploratory testing.