-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for remove command to ensure not removing according to provides
The new behavior is more stable for cases when the same spec is used multiple times with remove command. Requires: rpm-software-management/dnf5#1126
- Loading branch information
Showing
4 changed files
with
65 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@dnf5daemon | ||
Feature: Remove RPMs by provides | ||
|
||
|
||
Background: Install two providers of foo - foo and bar | ||
Given I use repository "dnf-ci-provides-alternatives" | ||
When I execute dnf with args "install foo bar" | ||
Then the exit code is 0 | ||
And Transaction is following | ||
| Action | Package | | ||
| install | foo-0:1.0-1.noarch | | ||
| install | bar-0:1.0-1.noarch | | ||
|
||
|
||
|
||
@dnf5 | ||
Scenario: Remove an RPM by name and not by provide | ||
When I execute dnf with args "remove 'foo'" | ||
Then the exit code is 0 | ||
And Transaction is following | ||
| Action | Package | | ||
| remove | foo-0:1.0-1.noarch | | ||
When I execute dnf with args "remove 'foo'" | ||
Then the exit code is 0 | ||
And Transaction is empty | ||
|
||
|
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
dnf-behave-tests/fixtures/specs/dnf-ci-provides-alternatives/bar-1.0.spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Name: bar | ||
Version: 1.0 | ||
Release: 1 | ||
|
||
Provides: foo | ||
|
||
Summary: Package bar that provides foo | ||
License: GPLv2+ and Public Domain | ||
|
||
BuildArch: noarch | ||
|
||
%description | ||
Dummy. | ||
|
||
|
||
%files | ||
|
||
|
||
%changelog |
19 changes: 19 additions & 0 deletions
19
dnf-behave-tests/fixtures/specs/dnf-ci-provides-alternatives/foo-1.0.spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Name: foo | ||
Version: 1.0 | ||
Release: 1 | ||
|
||
Summary: A dummy package foo | ||
License: GPLv2+ and Public Domain | ||
|
||
BuildArch: noarch | ||
|
||
|
||
|
||
%description | ||
Dummy. | ||
|
||
|
||
%files | ||
|
||
|
||
%changelog |