From c772b71c6548b3333b53175718ef9558e6e15876 Mon Sep 17 00:00:00 2001 From: Marek Blaha Date: Tue, 15 Oct 2024 13:10:25 +0200 Subject: [PATCH] Review download-source.feature for dnf5 - one already passing test tagged with @dnf5 - added links to github issues for failing tests --- dnf-behave-tests/dnf/download-source.feature | 27 ++++++++++++++------ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/dnf-behave-tests/dnf/download-source.feature b/dnf-behave-tests/dnf/download-source.feature index e2338c362..85152d509 100644 --- a/dnf-behave-tests/dnf/download-source.feature +++ b/dnf-behave-tests/dnf/download-source.feature @@ -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" @@ -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 + """ + + """ # @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" @@ -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 + """ + + """ # @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" @@ -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 + """ + + """ # @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" @@ -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 @@ -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