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