Bug 1510939

Summary: [modularity] disabled module still receives updates
Product: [Fedora] Fedora Reporter: Jan Blazek <jblazek>
Component: dnfAssignee: Martin Hatina <mhatina>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: dmach, jmracek, mhatina, packaging-team-maint, rpm-software-management, vmukhame
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-13 08:04:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1478068    

Description Jan Blazek 2017-11-08 13:10:56 UTC
Disabled module still receives updates.

Feature: Disabling module stream # behave/module-disable-2-dnf-3.feature:1

  @setup
  Scenario: Testing repository Setup                          # behave/module-disable-2-dnf-3.feature:4
    Given I run steps from file "modularity-repo-1.setup"     # behave/steps/file_steps.py:181
    When I enable repository "modularityABDE"                 # behave/steps/repo_steps.py:520
    And I successfully run "dnf -y module enable ModuleB:f26" # behave/steps/command_steps.py:34

  Scenario: Disabled but installed profile should not be receiving updates  # behave/module-disable-2-dnf-3.feature:9
    Given I successfully run "dnf module install -y ModuleB:f26:1/default"  # behave/steps/command_steps.py:34
    And I successfully run "dnf module disable ModuleB"                     # behave/steps/command_steps.py:34
    When I save rpmdb                                                       # behave/steps/rpm_steps.py:16
    And I successfully run "dnf update --assumeyes"                         # behave/steps/command_steps.py:34
    Then rpmdb does not change                                              # behave/steps/rpm_steps.py:151
      Assertion Failed: Element counts were not equal:
      First has 1, Second has 0:  u'TestG-1-1.modB.noarch'
      First has 1, Second has 0:  u'TestH-1-1.modB.noarch'
      First has 0, Second has 1:  u'TestG-2-1.modB.noarch'
      First has 0, Second has 1:  u'TestH-2-1.modB.noarch'



Version-Release number of selected component:
dnf-2.7.5-11.fc26.modularity.1.3fb9e5c.git.8069.189de9fNone.noarch
libdnf-0.11.1-1.fc26.x86_64

Comment 1 Martin Hatina 2017-11-09 08:26:12 UTC
Fixed by https://github.com/rpm-software-management/dnf/pull/976