From 2c57fe4f18ac89e1da4ffcfbadc8e82c2159c71e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Mat=C4=9Bj?= Date: Thu, 31 Oct 2024 11:49:26 +0100 Subject: [PATCH] Fix `offline-upgrade` minimal with security filters test The dnf4 version uses the `--minimal` behavior by default, reported as: https://github.com/rpm-software-management/dnf-plugins-core/issues/564 dnf5 has the `--minimal` flag available even for `offline-upgrade` and its default behavior matches `upgrade` command (upgrading to the highest available version). --- .../dnf/plugins-core/offline-upgrade-security-filters.feature | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dnf-behave-tests/dnf/plugins-core/offline-upgrade-security-filters.feature b/dnf-behave-tests/dnf/plugins-core/offline-upgrade-security-filters.feature index 8c025185c..faf1fea84 100644 --- a/dnf-behave-tests/dnf/plugins-core/offline-upgrade-security-filters.feature +++ b/dnf-behave-tests/dnf/plugins-core/offline-upgrade-security-filters.feature @@ -171,7 +171,7 @@ Given I use repository "dnf-ci-security" @bz1939975 -Scenario: Test security severity filter with offline-upgrade when higher version of a package is available +Scenario: Test security severity filter with offline-upgrade --minimal when higher version of a package is available Given I use repository "dnf-ci-security" And I execute dnf with args "install bugfix_B-1.0-1 advisory_B-1.0-3 security_A-1.0-1" Then the exit code is 0 @@ -182,7 +182,7 @@ Given I use repository "dnf-ci-security" | upgrade | advisory_B-0:1.0-4.x86_64 | | upgrade | bugfix_B-0:1.0-2.x86_64 | | upgrade | security_A-0:1.0-4.x86_64 | - When I execute dnf with args "offline-upgrade download --advisory-severities=Moderate" + When I execute dnf with args "offline-upgrade download --minimal --advisory-severities=Moderate" Then the exit code is 0 And DNF transaction is following | Action | Package |