Skip to content

Commit

Permalink
Fix offline-upgrade minimal with security filters test
Browse files Browse the repository at this point in the history
The dnf4 version uses the `--minimal` behavior by default, reported as:
rpm-software-management/dnf-plugins-core#564

dnf5 has the `--minimal` flag available even for `offline-upgrade` and
its default behavior matches `upgrade` command (upgrading to the highest
available version).
  • Loading branch information
kontura committed Nov 4, 2024
1 parent 9c6f3d1 commit 949a277
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 |
Expand Down

0 comments on commit 949a277

Please sign in to comment.