From Fedora Project Wiki

(Suggest a test case)
Line 2: Line 2:
|description= Install, remove and udpate modules in Fedora Server
|description= Install, remove and udpate modules in Fedora Server
|setup=  
|setup=  
# Grab 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 as root or run the following with sudo
 
|actions=  
|actions=  
===Install Modules <code>foo</code> from Stream and profile:===
=== Installing Modules===
    # Run <code> dnf module install foo:stream/profile </code>
To install a module, use the following commands:
===Install module <code>foo</code> with Profile, Stream and Version===
* <code>dnf module install module:stream</code> to install a module with a particular stream.
    # Run <code> dnf module isntall foo:stream:version/profile </code>
* <code>dnf module install foo:stream/profile </code> to install a module with a particular stream and profile.
===Remove module <code>foo</code> with Profile, Stream and Version:===
Check, that the module is correctly installed, appears in the list of installed modules and shows the correct stream and profile.
    # Run <code> dnf module remove foo:stream:version/profile </code>
 
===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.
 
===Updating Modules===
To update a module, use the following commands:
* <code>dnf module update module:stream</code> to update a particular stream of the module.
* <code>dnf module update foo:stream/profile </code> to update a particular stream and profile of the module.
Check, that the module is correctly updated - the version changes.
 
|results=
|results=
The commands execute without error
All above commands execute without errors.
# The first command will ask you to install the foo module and result in success
# 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 second command will install the module with the specified stream, version, and profile                                                                                                                                                                  
# 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.
# The remove module command will remove the module
# When you update the module (:stream/profile), the module must be updated to a newer version, but the stream and the profile must stay the same.
 
|optional= Try various modules and streams/profiles.
}}
}}

Revision as of 12:16, 3 August 2018

Description

Install, remove and udpate modules in Fedora Server

Setup

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

How to test

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.

Updating Modules

To update a module, use the following commands:

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

Check, that the module is correctly updated - the version changes.

Expected Results

All above commands execute without errors.

  1. 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.
  2. 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.
  3. When you update the module (:stream/profile), the module must be updated to a newer version, but the stream and the profile must stay the same.

Optional

Try various modules and streams/profiles.