From c02db9ac419b447c54180c575f283d6b3f69c4c7 Mon Sep 17 00:00:00 2001 From: Marek Blaha Date: Wed, 23 Oct 2024 16:50:47 +0200 Subject: [PATCH] Test for groups with duplicate package entry See https://bugzilla.redhat.com/show_bug.cgi?id=2263762 --- dnf-behave-tests/dnf/comps-group.feature | 10 ++++++++++ .../specs/comps-group-duplicate-package/comps.xml | 13 +++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 dnf-behave-tests/fixtures/specs/comps-group-duplicate-package/comps.xml diff --git a/dnf-behave-tests/dnf/comps-group.feature b/dnf-behave-tests/dnf/comps-group.feature index 33c87f042..8ef01cecd 100644 --- a/dnf-behave-tests/dnf/comps-group.feature +++ b/dnf-behave-tests/dnf/comps-group.feature @@ -697,3 +697,13 @@ Scenario: Remove group that is not installed 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 | diff --git a/dnf-behave-tests/fixtures/specs/comps-group-duplicate-package/comps.xml b/dnf-behave-tests/fixtures/specs/comps-group-duplicate-package/comps.xml new file mode 100644 index 000000000..698a113b8 --- /dev/null +++ b/dnf-behave-tests/fixtures/specs/comps-group-duplicate-package/comps.xml @@ -0,0 +1,13 @@ + + + + + test-group + Test Group + Test Group description. + + test-package + test-package + + +