-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add obsoletes tests for yum behavior
- Loading branch information
Showing
5 changed files
with
86 additions
and
0 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,24 @@ | ||
@dnf5 | ||
Feature: Obsoles behavior specified by `SOLVER_FLAG_YUM_OBSOLETES` libsolv flag | ||
|
||
|
||
# dnf-3 fails this test, it incorrectly installs the new packages | ||
# as dependencies. | ||
Scenario: install all obsoleters (as user installed) | ||
Given I use repository "obsoletes-yum" | ||
And I successfully execute dnf with args "install wood-1.0" | ||
When I execute dnf with args "upgrade" | ||
Then the exit code is 0 | ||
And Transaction is following | ||
| Action | Package | | ||
| install | copper-0:1.0-1.fc29.x86_64 | | ||
| install | iron-0:1.0-1.fc29.x86_64 | | ||
| upgrade | wood-0:2.0-1.fc29.x86_64 | | ||
When I execute dnf with args "rq --installed --qf '%{{name}} - %{{reason}}\n'" | ||
Then stdout is | ||
""" | ||
copper - User | ||
iron - User | ||
wood - User | ||
""" | ||
|
16 changes: 16 additions & 0 deletions
16
dnf-behave-tests/fixtures/specs/obsoletes-yum/copper-1.0-1.fc29.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,16 @@ | ||
Name: copper | ||
Version: 1.0 | ||
Release: 1.fc29 | ||
Summary: Made up package | ||
|
||
License: GPLv3+ | ||
Url: None | ||
|
||
Obsoletes: wood < 2.0 | ||
|
||
%description | ||
copper description | ||
|
||
%files | ||
|
||
%changelog |
16 changes: 16 additions & 0 deletions
16
dnf-behave-tests/fixtures/specs/obsoletes-yum/iron-1.0-1.fc29.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,16 @@ | ||
Name: iron | ||
Version: 1.0 | ||
Release: 1.fc29 | ||
Summary: Made up package | ||
|
||
License: GPLv3+ | ||
Url: None | ||
|
||
Obsoletes: wood < 2.0 | ||
|
||
%description | ||
iron description | ||
|
||
%files | ||
|
||
%changelog |
14 changes: 14 additions & 0 deletions
14
dnf-behave-tests/fixtures/specs/obsoletes-yum/wood-1.0-1.fc29.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,14 @@ | ||
Name: wood | ||
Version: 1.0 | ||
Release: 1.fc29 | ||
Summary: Made up package | ||
|
||
License: GPLv3+ | ||
Url: None | ||
|
||
%description | ||
wood description | ||
|
||
%files | ||
|
||
%changelog |
16 changes: 16 additions & 0 deletions
16
dnf-behave-tests/fixtures/specs/obsoletes-yum/wood-2.0-1.fc29.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,16 @@ | ||
Name: wood | ||
Version: 2.0 | ||
Release: 1.fc29 | ||
Summary: Made up package | ||
|
||
License: GPLv3+ | ||
Url: None | ||
|
||
Obsoletes: wood < 2.0 | ||
|
||
%description | ||
wood description | ||
|
||
%files | ||
|
||
%changelog |