From Fedora Project Wiki

m (Lruzicka moved page User:Sumantrom/Draft/dnf module list to User:Lruzicka/Draft/dnf module list: A change of assignees.)
m (adding category for modularity acceptance test cases)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description= Listing all enabled and disabled modules in Fedora Server
|description= This test case will show if modularity is enabled and that the system provides basic information about the available modules.
|setup=  
|setup=  
# Grab Fedora Server and continue to install on a VM or Baremetal
# Install Fedora. Modularity is available for all varieties of Fedora and it should be switched on by default. For the start, you could choose ''Fedora Workstation'' or '' Fedora Server''.
# Login from the Cockpit Web-UI or server with the created user or root
# Log onto the system.
# Run a terminal application, such as '''gnome-terminal''', or switch to a virtual console ('''Ctrl-Alt-F3'''). 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'''.
 
|actions=
|actions=
=== Listing All Modules: ===
<ol>
    # Execute <code> dnf module list --all </code>
<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>
=== Listing All Enbaled Modules: ===
<li>Check that '''enabled''' modules can be listed.  <br/>
    # Execute <code> dnf module list --enabled </code>
      Execute <code>dnf module list --enabled</code> to get the list.</li>
 
<li>Check '''disabled''' modules can be listed. <br/>
=== Listing All Disabled Modules: ===
      Execute <code>dnf module list --disabled</code> to get the list.</li>
    # Execute <code> dnf module list --disabled </code>
<li>Check that '''dnf''' provides you with a list of modules that are '''installed''' on the system. <br/>
 
      Execute <code>dnf module list --installed</code> to get the list.</li>
=== Listing All Installed modules ===
</ol>
    # Execute <code> dnf module list --installed </code>


|results=
|results=
The commands execute without error  
# Modularity and modular repositories should be enabled by '''default'''. If it for does not work for any reason, the test should be considered a '''fail'''.
# The first command prints all the modules with their stream, version and profile details.
# 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 '''fails'''.
# The second command prints all the modules which are enabled in the system
# <code>dnf module list (--all)</code> lists all modules and provides details, such as stream, version and profile. If this command returns an empty list, the test should be considered a '''fail'''.
# The third command prints all the modules which are presently disabled
# <code>dnf module list --enabled</code> lists all enabled modules. The result can be an empty list, if there are no enabled modules.
# The fourth command prints all the modules which are presently installed  
# <code>dnf module list --disabled</code> lists all disabled modules. The result can be an empty list, if there are no disabled modules.
|optional=Optionally provide hints for exploratory testing.
# <code>dnf module list --installed</code> lists all installed modules. The result can be an empty list, if there are no installed modules.
}}
}}
[[Category:Modularity_Acceptance_Test_Cases]]

Latest revision as of 19:10, 10 February 2022

Description

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

Setup

  1. Install Fedora. Modularity is available for all varieties of Fedora and it should be switched on by default. For the start, you could choose Fedora Workstation or Fedora Server.
  2. Log onto the system.
  3. Run a terminal application, such as gnome-terminal, or switch to a virtual console (Ctrl-Alt-F3). 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 enabled modules can be listed.
    Execute dnf module list --enabled to get the list.
  3. Check disabled modules can be listed.
    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 it for does not work for any reason, the test should be considered a 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 fails.
  3. dnf module list (--all) lists all modules and provides details, such as stream, version and profile. If this command returns an empty list, the test should be considered a fail.
  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.