Skip to content

Commit

Permalink
Test for groups with duplicate package entry
Browse files Browse the repository at this point in the history
  • Loading branch information
m-blaha authored and ppisar committed Oct 25, 2024
1 parent c7448ae commit c02db9a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dnf-behave-tests/dnf/comps-group.feature
Original file line number Diff line number Diff line change
Expand Up @@ -697,3 +697,13 @@ Scenario: Remove group that is not installed
<REPOSYNC>
No groups to remove for argument: dnf-ci-testgroup
"""

@dnf5
@bz2263762
Scenario: Dnf works with comps group containing duplicate package entry
Given I use repository "comps-group-duplicate-package"
When I execute dnf with args "install @test-group"
Then the exit code is 0
And Transaction is following
| Action | Package |
| group-install | Test Group |
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE comps PUBLIC "-//Red Hat, Inc.//DTD Comps info//EN" "comps.dtd">
<comps>
<group>
<id>test-group</id>
<name>Test Group</name>
<description>Test Group description.</description>
<packagelist>
<packagereq type="conditional" requires="requires">test-package</packagereq>
<packagereq type="conditional" requires="another-requires">test-package</packagereq>
</packagelist>
</group>
</comps>

0 comments on commit c02db9a

Please sign in to comment.