From Fedora Project Wiki

(Created page with "{{QA/Test_Case |description= Listing all enabled and disabled modules in Fedora 28 Server |setup= # Download a [https://kojipkgs.fedoraproject.org/compose/ nightly image] or...")
 
(remove note to install fedora-repos-modular again)
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description= Listing all enabled and disabled modules in Fedora 28 Server
|description= This test case will show if modularity is enabled and that the system provides basic information about the available modules.
|setup=  
|setup=  
# Download a [https://kojipkgs.fedoraproject.org/compose/ nightly image] or [https://kojipkgs.fedoraproject.org/compose/28/ RC] of Fedora 28 Server
# 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''.
# Continue to install on a VM or Baremetal
# Log onto the system.
# Login from the Cockpit Web-UI or server with the created user or root
# 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'''.
{{#tag:pre|
# <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'''.
dnf module list --all                                                                                                                                                                                                          
# <code>dnf module list --enabled</code> lists all enabled modules. The result can be an empty list, if there are no enabled modules.
Last metadata expiration check: 2:18:16 ago on Fri 10 Nov 2017 03:35:01 AM IST.                                                                                                                                                                     
# <code>dnf module list --disabled</code> lists all disabled modules. The result can be an empty list, if there are no disabled modules.
Fedora Modular Server 27 - x86_64                                                                                                                                                                                                                   
# <code>dnf module list --installed</code> lists all installed modules. The result can be an empty list, if there are no installed modules.
Name                                                        Stream                                                  Version                                                  Profiles                                                             
389-ds                                                      1.3 [d]                                                20171102233352                                          default                                                               
X11-base                                                    f27 [d][e]                                              20171103131108                                          default                                                               
                                                                                                                                                                                                                                                                                                                                                                              Hint: [d]efault, [e]nabled, [i]nstalled, [l]ocked
}}
# The second command prints all the modules which are enabled in the the system
{{#tag:pre|
dnf module list --enabled                                                                                                                                                                                                      
Last metadata expiration check: 2:26:47 ago on Fri 10 Nov 2017 03:35:01 AM IST.                                                                                                                                                                    
Fedora Modular Server 27 - x86_64                                                                                                                                                                                                                   
Name                                                        Stream                                                  Version                                                  Profiles                                                             
X11-base                                                    f27 [d][e]                                              20171103131108                                          default                                                               
bind                                                        9 [d][e]                                                20171018084824                                          client, default, ...                                                 
freeipa                                                      4.6 [d][e]                                              20171104182858                                          default                                                               
hardware-support                                            f27 [d][e]                                              20171017135323                                                                                                                 
host                                                        f27 [d][e]                                              20171107172526                                                                                                                 
httpd                                                        2.4 [d][e]                                              20171106215612                                          default                                                               
installer                                                    f27 [d][e]                                              20171030201659                                          default                                                               
networking-base                                              f27 [d][e]                                              20171107221720                                          default                                                               
nodejs                                                      8 [d][e]                                                20171101135042                                          default [i], development, ...                                         
platform                                                    f27 [d][e]                                              20171107221036                                          buildroot, srpm-buildroot                                             
postgresql                                                  9.6 [d][e]                                              20171105174222                                          client, default [i], ...                                             
python2                                                      master [d][e]                                          20171003150125                                          default, full, ..
}}
# The third command prints all the modules which are presently disabled
{{#tag:pre|
dnf module list --disabled                                                                                                                                                                                                      
Last metadata expiration check: 2:28:41 ago on Fri 10 Nov 2017 03:35:01 AM IST.                                                                                                                                                                    
Fedora Modular Server 27 - x86_64                                                                                                                                                                                                                   
Name                                                          Stream                                                Version                                                    Profiles                                                           
389-ds                                                        1.3 [d]                                                20171102233352                                            default                                                             
apache-commons                                                f27 [d]                                                20171018085030                                            default                                                             
autotools                                                    f27 [d]                                                20171018090442                                            default                                                             
cloud-init                                                    f27 [d]                                                20171017101923                                            default                                                             
fonts                                                        f27 [d]                                                20171106163600                                            default, everything                                                 
java                                                          8 [d]                                                  20171025083238                                            default
}}
# The fourth command prints all the modules which are presently installed
{{#tag:pre|
dnf module list --installed                                                                                                                                                                                                    
Last metadata expiration check: 2:30:32 ago on Fri 10 Nov 2017 03:35:01 AM IST.                                                                                                                                                                    
Fedora Modular Server 27 - x86_64                                                                                                                                                                                                                   
Name                                                    Stream                                                  Version                                                    Profiles                                                               
nodejs                                                  8 [d][e]                                                20171101135042                                              default [i], development, ...                                           
postgresql                                              9.6 [d][e]                                              20171105174222                                              client, default [i], ...                                               
                                                                                                                                                                                                                                                   
Hint: [d]efault, [e]nabled, [i]nstalled, [l]ocked
}}
|optional=Optionally provide hints for exploratory testing.
}}
}}

Revision as of 01:43, 11 July 2020

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.