From Fedora Project Wiki

m (Minor save)
(Finish test case)
Line 9: Line 9:
|actions=
|actions=
<ol>
<ol>
  <li>Check that '''dnf''' provides you with the list of '''all''' modules available to the system: <br/>
  <li>Check that '''dnf''' provides you with a list of '''all''' modules available to the system: <br/>
       To do so, execute <code> dnf module list</code>.  You can also use the <code>--all</code> option, the results should be the same.<br/></li>
       To do so, execute <code> dnf module list</code>.  You can also use the <code>--all</code> option, the results should be the same.<br/></li>
  <li>Check that '''dnf''' provides you with the list of modules that have been '''enabled''' on the system.  <br/>
  <li>Check that '''dnf''' provides you with a list of modules that have been '''enabled''' on the system.  <br/>
       Execute <code>dnf module list --enabled</code>.</li>
       Execute <code>dnf module list --enabled</code> to get the list.</li>
  <li></li>
  <li>Check that '''dnf''' provides you with a list of modules that have been '''disabled''' on the system. <br/>
  <li></li>
      Execute <code>dnf module list --disabled</code> to get the list.</li>
<li></li>
  <li>Check that '''dnf''' provides you with a list of modules that are '''installed''' on the system. <br/>
<ol>
      Execute <code>dnf module list --installed</code> to get the list.</li>
</ol>


|results=
# Modularity and modular repositories should be enabled '''by default'''. If you need to do it manually for the above commands to work, please '''report a bug''', and consider the test a ''soft-fail''.
# All above commands must run without any errors and they should provide the needed info. If they throw any error, report a bug, and the test is a ''fail''.
# <code>dnf module list (--all)</code> lists all modules and provides details, such as stream, version and profile.
# <code>dnf module list --enabled</code> lists all enabled modules. The result can be an empty list, if there are no enabled modules.
# <code>dnf module list --disabled</code> lists all disabled modules. The result can be an empty list, if there are no disabled modules.
# <code>dnf module list --installed</code> lists all installed modules. The result can be an empty list, if there are no installed modules.


=== Listing All Enbaled Modules: ===
    # Execute <code> dnf module list --enabled </code>
=== Listing All Disabled Modules: ===
    # Execute <code> dnf module list --disabled </code>
=== Listing All Installed modules ===
    # Execute <code> dnf module list --installed </code>
|results=
The commands execute without error
# The first command prints all the modules with their stream, version and profile details.
# The second command prints all the modules which are enabled in the system
# The third command prints all the modules which are presently disabled
# The fourth command prints all the modules which are presently installed
|optional=Optionally provide hints for exploratory testing.
|optional=Optionally provide hints for exploratory testing.
If modularity and modular repos are not available by default, enable them by running the following command:
# <code>dnf install fedora-repos-modular fedora-repos-rawhide-modular</code>
}}
}}

Revision as of 09:40, 3 August 2018

Description

This test case will show if modularity is enabled in Fedora and that the system provides basic information about the available modules.

Setup

  1. Install any of the Fedora spins, for example Workstation or Server.
  2. Log onto the system.
  3. Run a terminal application, such as gnome-terminal. The following test will use dnf to work with the modules.

Note: For the time's being, users can work with modules using dnf. In the future, other package managers will be able to deal with it. Until then, do not attempt to test this approach using tools other than dnf.

How to test

  1. Check that dnf provides you with a list of all modules available to the system:
    To do so, execute dnf module list. You can also use the --all option, the results should be the same.
  2. Check that dnf provides you with a list of modules that have been enabled on the system.
    Execute dnf module list --enabled to get the list.
  3. Check that dnf provides you with a list of modules that have been disabled on the system.
    Execute dnf module list --disabled to get the list.
  4. Check that dnf provides you with a list of modules that are installed on the system.
    Execute dnf module list --installed to get the list.

Expected Results

  1. Modularity and modular repositories should be enabled by default. If you need to do it manually for the above commands to work, please report a bug, and consider the test a soft-fail.
  2. All above commands must run without any errors and they should provide the needed info. If they throw any error, report a bug, and the test is a fail.
  3. dnf module list (--all) lists all modules and provides details, such as stream, version and profile.
  4. dnf module list --enabled lists all enabled modules. The result can be an empty list, if there are no enabled modules.
  5. dnf module list --disabled lists all disabled modules. The result can be an empty list, if there are no disabled modules.
  6. dnf module list --installed lists all installed modules. The result can be an empty list, if there are no installed modules.

Optional

Optionally provide hints for exploratory testing. If modularity and modular repos are not available by default, enable them by running the following command:

  1. dnf install fedora-repos-modular fedora-repos-rawhide-modular