From 2559afc99257e2719a97774a92b9b2be047066d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Mat=C4=9Bj?= Date: Mon, 8 Apr 2024 07:51:37 +0200 Subject: [PATCH] microdnf: test for reinstall of pkg with identical Provide and Conflict --- .../dnf/microdnf/reinstall6.feature | 12 ++++++++++++ .../hello-1.0-1.fc29.spec | 17 +++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 dnf-behave-tests/dnf/microdnf/reinstall6.feature create mode 100644 dnf-behave-tests/fixtures/specs/reinstall-provides-conflict/hello-1.0-1.fc29.spec diff --git a/dnf-behave-tests/dnf/microdnf/reinstall6.feature b/dnf-behave-tests/dnf/microdnf/reinstall6.feature new file mode 100644 index 000000000..2fd2e2a5a --- /dev/null +++ b/dnf-behave-tests/dnf/microdnf/reinstall6.feature @@ -0,0 +1,12 @@ +@no_installroot +Feature: Reinstall + + +Scenario: Reinstall a pkg that has an identical Provide and a Conflict + Given I use repository "reinstall-provides-conflict" + And I successfully execute microdnf with args "install hello" + When I execute microdnf with args "reinstall hello" + Then the exit code is 0 + And RPMDB Transaction is following + | Action | Package | + | reinstall | hello-0:1.0-1.fc29.x86_64 | diff --git a/dnf-behave-tests/fixtures/specs/reinstall-provides-conflict/hello-1.0-1.fc29.spec b/dnf-behave-tests/fixtures/specs/reinstall-provides-conflict/hello-1.0-1.fc29.spec new file mode 100644 index 000000000..9b8ad0bf1 --- /dev/null +++ b/dnf-behave-tests/fixtures/specs/reinstall-provides-conflict/hello-1.0-1.fc29.spec @@ -0,0 +1,17 @@ +Name: hello +Version: 1.0 +Release: 1.fc29 +Summary: Made up package + +License: GPLv3+ +Url: None + +Conflicts: hello +Provides: hello + +%description +Description of a pkg that Provides and Conflicts the same capability. + +%files + +%changelog