Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test for groups with duplicate package entry #1580

Merged
merged 1 commit into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
Loading