From 735bdde8f9f7aa571433e990039a726654588c6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Mat=C4=9Bj?= Date: Mon, 15 Jul 2024 14:17:09 +0200 Subject: [PATCH] Rename and enable tests for install latest dependencies Requires: https://github.com/rpm-software-management/dnf5/pull/1582 --- .../{focusbest.feature => install-latest-deps.feature} | 9 +++------ .../ipa-client-1.0-1.fc29.spec | 0 .../krb5-libs-1.0-1.fc29.spec | 0 .../krb5-libs-2.0-1.fc29.spec | 0 .../krb5-pkinit-1.0-1.fc29.spec | 0 .../krb5-pkinit-2.0-1.fc29.spec | 0 6 files changed, 3 insertions(+), 6 deletions(-) rename dnf-behave-tests/dnf/{focusbest.feature => install-latest-deps.feature} (84%) rename dnf-behave-tests/fixtures/specs/{focusbest => install-latest-deps}/ipa-client-1.0-1.fc29.spec (100%) rename dnf-behave-tests/fixtures/specs/{focusbest => install-latest-deps}/krb5-libs-1.0-1.fc29.spec (100%) rename dnf-behave-tests/fixtures/specs/{focusbest => install-latest-deps}/krb5-libs-2.0-1.fc29.spec (100%) rename dnf-behave-tests/fixtures/specs/{focusbest => install-latest-deps}/krb5-pkinit-1.0-1.fc29.spec (100%) rename dnf-behave-tests/fixtures/specs/{focusbest => install-latest-deps}/krb5-pkinit-2.0-1.fc29.spec (100%) diff --git a/dnf-behave-tests/dnf/focusbest.feature b/dnf-behave-tests/dnf/install-latest-deps.feature similarity index 84% rename from dnf-behave-tests/dnf/focusbest.feature rename to dnf-behave-tests/dnf/install-latest-deps.feature index d6bd4b429..34bda6557 100644 --- a/dnf-behave-tests/dnf/focusbest.feature +++ b/dnf-behave-tests/dnf/install-latest-deps.feature @@ -1,12 +1,9 @@ @dnf5 -Feature: Always use the latest packages even for dependecies +Feature: Always use the latest packages when installing dependecies -# The focusbest behavior has been reverted. -# It might become an option in the future. -@xfail Scenario: prefer installing latests dependencies rather than smaller transaction - Given I use repository "focusbest" + Given I use repository "install-latest-deps" And I successfully execute dnf with args "install krb5-libs-1.0" When I execute dnf with args "install ipa-client" Then the exit code is 0 @@ -22,7 +19,7 @@ Scenario: prefer installing latests dependencies rather than smaller transaction Scenario: if latests dependencies are not possible to install fall back to lower versions without errors - Given I use repository "focusbest" + Given I use repository "install-latest-deps" And I successfully execute dnf with args "install krb5-libs-1.0" When I execute dnf with args "install ipa-client -x krb5-libs-2.0" Then the exit code is 0 diff --git a/dnf-behave-tests/fixtures/specs/focusbest/ipa-client-1.0-1.fc29.spec b/dnf-behave-tests/fixtures/specs/install-latest-deps/ipa-client-1.0-1.fc29.spec similarity index 100% rename from dnf-behave-tests/fixtures/specs/focusbest/ipa-client-1.0-1.fc29.spec rename to dnf-behave-tests/fixtures/specs/install-latest-deps/ipa-client-1.0-1.fc29.spec diff --git a/dnf-behave-tests/fixtures/specs/focusbest/krb5-libs-1.0-1.fc29.spec b/dnf-behave-tests/fixtures/specs/install-latest-deps/krb5-libs-1.0-1.fc29.spec similarity index 100% rename from dnf-behave-tests/fixtures/specs/focusbest/krb5-libs-1.0-1.fc29.spec rename to dnf-behave-tests/fixtures/specs/install-latest-deps/krb5-libs-1.0-1.fc29.spec diff --git a/dnf-behave-tests/fixtures/specs/focusbest/krb5-libs-2.0-1.fc29.spec b/dnf-behave-tests/fixtures/specs/install-latest-deps/krb5-libs-2.0-1.fc29.spec similarity index 100% rename from dnf-behave-tests/fixtures/specs/focusbest/krb5-libs-2.0-1.fc29.spec rename to dnf-behave-tests/fixtures/specs/install-latest-deps/krb5-libs-2.0-1.fc29.spec diff --git a/dnf-behave-tests/fixtures/specs/focusbest/krb5-pkinit-1.0-1.fc29.spec b/dnf-behave-tests/fixtures/specs/install-latest-deps/krb5-pkinit-1.0-1.fc29.spec similarity index 100% rename from dnf-behave-tests/fixtures/specs/focusbest/krb5-pkinit-1.0-1.fc29.spec rename to dnf-behave-tests/fixtures/specs/install-latest-deps/krb5-pkinit-1.0-1.fc29.spec diff --git a/dnf-behave-tests/fixtures/specs/focusbest/krb5-pkinit-2.0-1.fc29.spec b/dnf-behave-tests/fixtures/specs/install-latest-deps/krb5-pkinit-2.0-1.fc29.spec similarity index 100% rename from dnf-behave-tests/fixtures/specs/focusbest/krb5-pkinit-2.0-1.fc29.spec rename to dnf-behave-tests/fixtures/specs/install-latest-deps/krb5-pkinit-2.0-1.fc29.spec