From Fedora Project Wiki

(Use nodejs stream 10 instead of 8 (which is not available in F31 and newer))
(add note to install fedora-repos-modular)
Line 2: Line 2:
 
|description= This test cases checks that '''dnf''' is able to protect modular packages from being updated when a modular repository is unavailable. According to this dnf [https://bugzilla.redhat.com/show_bug.cgi?id=1616167 bug], it does not remember any information about the origin of the package. So, when the metadata from modular repositories are not available to the system, dnf will override the modular package and will update it to the newest package available in the non-modular repository.
 
|description= This test cases checks that '''dnf''' is able to protect modular packages from being updated when a modular repository is unavailable. According to this dnf [https://bugzilla.redhat.com/show_bug.cgi?id=1616167 bug], it does not remember any information about the origin of the package. So, when the metadata from modular repositories are not available to the system, dnf will override the modular package and will update it to the newest package available in the non-modular repository.
 
|setup=  
 
|setup=  
# For Fedora 29, modularity is enabled by default. To more about modules, follow the instructions in this test case [https://fedoraproject.org/wiki/User:Lruzicka/Draft/dnf_module_list here]
+
# To start and learn how to list modules, follow the instructions in [[QA:Testcase_Modularity_module_list|this test case]]. On Fedora 33 or later you will need to run {{command|dnf install fedora-repos-modular}}.
  
 
|actions=  
 
|actions=  

Revision as of 22:52, 8 July 2020

Description

This test cases checks that dnf is able to protect modular packages from being updated when a modular repository is unavailable. According to this dnf bug, it does not remember any information about the origin of the package. So, when the metadata from modular repositories are not available to the system, dnf will override the modular package and will update it to the newest package available in the non-modular repository.

Setup

  1. To start and learn how to list modules, follow the instructions in this test case. On Fedora 33 or later you will need to run dnf install fedora-repos-modular.

How to test

  1. Update your system.
    dnf update
  2. Enable the nodejs module in stream 10.
    dnf module enable nodejs:10
  3. Install the nodejs module in stream 10.
    dnf module install nodejs:10
  4. Update your system with modular repositories disabled.
    dnf update --disablerepo=\*modular

Expected Results

This test should be considered passed if:

  1. All used commands finish without errors.
  2. The nodejs package will not be updated to a newer version in Step 3 - the same module and the same stream is listed in the list of installed modules.

Optional

Try different modules.