Bug 1924001

Summary: add support for proxy_username and proxy_password in microdnf
Product: Red Hat Enterprise Linux 8 Reporter: Nicola Sella <nsella>
Component: microdnfAssignee: Nicola Sella <nsella>
Status: CLOSED ERRATA QA Contact: Jan Blazek <jblazek>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 8.4CC: jrohel, pkratoch
Target Milestone: rcKeywords: Triaged
Target Release: 8.0Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: libdnf-0.63.0-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 19:48:43 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: 1951409    
Bug Blocks:    

Description Nicola Sella 2021-02-02 12:15:06 UTC
Description of problem:
This pr enables proxy_username and proxy_password for microdnf. without it some tests are failing

https://github.com/rpm-software-management/libdnf/pull/1103

Version-Release number of selected component (if applicable):
microdnf-3.4.0-3.el8

Steps to Reproduce:
run tests for 8.4 features/microdnf/error_messages.feature

Actual results:
    ./dnf-testing.sh -d run --noxfail features/microdnf/error_messages.feature  
    Feature: Test error messages # features/microdnf/error_messages.feature:1
                                                   
      @bz1888946                                                                                                                                                                                  
      Scenario: Global option 'proxy_username' is set but not 'proxy_password'  # features/microdnf/error_messages.feature:5
        Given I use repository "dnf-ci-fedora"                                  # features/steps/repo.py:138
        And I use repository "dnf-ci-fedora-updates"                            # features/steps/repo.py:138
        And I configure dnf with                                                # features/steps/config.py:12  
          | key            | value |                                                                                                                                                              
          | proxy_username | user  |                                                                                                                                                              
        When I execute microdnf with args "repoquery abcde"                     # features/steps/cmd.py:138                                                                                           Then the exit code is 1                                                 # common/output.py:33                                                                                                   Assertion Failed: Command has returned exit code 0: microdnf -y --installroot=/tmp/dnf_ci_installroot_wyxd9r4a --noplugins --config=/tmp/dnf_ci_installroot_wyxd9r4a/etc/dnf/dnf.conf --
    setopt=reposdir=/tmp/dnf_ci_installroot_wyxd9r4a/etc/yum.repos.d --setopt=varsdir=/tmp/dnf_ci_installroot_wyxd9r4a/etc/dnf/vars --setopt=cachedir=/tmp/dnf_ci_installroot_wyxd9r4a/var/cache/y
    um --releasever=29 --setopt=module_platform_id=platform:f29 repoquery abcde                                                                                                                                                                                                                                                                                                                 Last Command: microdnf -y --installroot=/tmp/dnf_ci_installroot_wyxd9r4a --noplugins --config=/tmp/dnf_ci_installroot_wyxd9r4a/etc/dnf/dnf.conf --setopt=reposdir=/tmp/dnf_ci_installroot_wyxd
    9r4a/etc/yum.repos.d --setopt=varsdir=/tmp/dnf_ci_installroot_wyxd9r4a/etc/dnf/vars --setopt=cachedir=/tmp/dnf_ci_installroot_wyxd9r4a/var/cache/yum --releasever=29 --setopt=module_platform_
    id=platform:f29 repoquery abcde
                                                   
    Last Command stdout:  
    abcde-2.9.2-1.fc29.noarch
    abcde-2.9.2-1.fc29.src
    abcde-2.9.3-1.fc29.noarch
    abcde-2.9.3-1.fc29.src


Expected results:
Tests should pass

Additional info:

Comment 15 errata-xmlrpc 2021-11-09 19:48:43 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (microdnf bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:4441