Skip to content

Commit

Permalink
Review download-source.feature for dnf5
Browse files Browse the repository at this point in the history
- one already passing test tagged with @dnf5
- added links to github issues for failing tests
  • Loading branch information
m-blaha authored and kontura committed Oct 16, 2024
1 parent e919a41 commit c772b71
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions dnf-behave-tests/dnf/download-source.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ Feature: Tests for different package download sources


# @dnf5
# TODO(nsella) Unknown argument "makecache" for command "microdnf"
# dnf5 does not fall-back to baseurl if mirrorlist fails.
# https://github.com/rpm-software-management/dnf5/issues/1763
@bz1775184
Scenario: baseurl is used if all mirrors from mirrorlist fail
Given I create directory "/baseurlrepo"
Expand All @@ -18,11 +19,14 @@ Given I create directory "/baseurlrepo"
| mirrorlist | {context.dnf.installroot}/tmp/mirrorlist |
When I execute dnf with args "makecache"
Then the exit code is 0
And stderr is empty
And stderr is
"""
<REPOSYNC>
"""


# @dnf5
# TODO(nsella) Unknown argument "makecache" for command "microdnf"
# https://github.com/rpm-software-management/dnf5/issues/1763
@bz1775184
Scenario: baseurl is used if mirrorlist file cannot be found
Given I create directory "/baseurlrepo"
Expand All @@ -33,11 +37,14 @@ Given I create directory "/baseurlrepo"
| mirrorlist | {context.dnf.installroot}/tmp/mirrorlist |
When I execute dnf with args "makecache"
Then the exit code is 0
And stderr is empty
And stderr is
"""
<REPOSYNC>
"""


# @dnf5
# TODO(nsella) Unknown argument "makecache" for command "microdnf"
# https://github.com/rpm-software-management/dnf5/issues/1763
@bz1775184
Scenario: baseurl is used if mirrorlist file is empty
Given I create directory "/baseurlrepo"
Expand All @@ -51,11 +58,14 @@ Given I create directory "/baseurlrepo"
| mirrorlist | {context.dnf.installroot}/tmp/mirrorlist |
When I execute dnf with args "makecache"
Then the exit code is 0
And stderr is empty
And stderr is
"""
<REPOSYNC>
"""


# @dnf5
# TODO(nsella) Unknown argument "makecache" for command "microdnf"
# https://github.com/rpm-software-management/dnf5/issues/1763
Scenario: no working donwload source result in an error
Given I create directory "/baseurlrepo"
And I execute "createrepo_c {context.dnf.installroot}/baseurlrepo"
Expand Down Expand Up @@ -139,7 +149,7 @@ Given I make packages from repository "dnf-ci-fedora" accessible via http


# @dnf5
# TODO(nsella) different HTTP log
# https://github.com/rpm-software-management/dnf5/issues/1321
@bz1817130
Scenario: Download a package that contains special URL characters that need to be encoded (e.g. a +)
Given I use repository "download-sources" as http
Expand Down Expand Up @@ -172,6 +182,7 @@ Given I make packages from repository "download-sources" accessible via http
"""


@dnf5
@bz2103015
Scenario: Download a package that contains special URL characters by passing an encoded URL
Given I use repository "download-sources" as http
Expand Down

0 comments on commit c772b71

Please sign in to comment.