Skip to content

Commit

Permalink
Add test for installonlypkg name with a glob
Browse files Browse the repository at this point in the history
Not supporting globs is important for the filter to have feature parity
with transaction where libsolv does not handles globs. DNF4
documentation also describes that the option contains provides names.
  • Loading branch information
j-mracek committed Nov 28, 2023
1 parent f106c0e commit fa6484b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions dnf-behave-tests/dnf/repoquery/duplicates.feature
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,21 @@ Given I use repository "repoquery-main"
<REPOSYNC>
"""

Scenario: don't resolve globs in installonlypkgs options
# it is important to ensure the identical behavior with libsolv
Given I use repository "repoquery-main"
And I execute dnf with args "install top-a-2.0-2"
And I execute rpm with args "-i --nodeps {context.scenario.repos_location}/repoquery-main/x86_64/bottom-a3-1.0-1.x86_64.rpm"
And I execute rpm with args "-i --nodeps {context.scenario.repos_location}/repoquery-main/x86_64/bottom-a3-2.0-1.x86_64.rpm"
And I configure dnf with
| key | value |
| installonlypkgs | bottom-a3* |
When I execute dnf with args "repoquery --duplicates"
Then the exit code is 0
And stdout is
"""
<REPOSYNC>
bottom-a3-1:1.0-1.x86_64
bottom-a3-1:2.0-1.x86_64
"""

0 comments on commit fa6484b

Please sign in to comment.