-
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.
Introduce test
obsoletes-keep-reason
When package is being replaced, new package must keep reason of obsoleted package.
- Loading branch information
Showing
5 changed files
with
191 additions
and
155 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
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
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,32 @@ | ||
Feature: DNF/Behave test Obsolete keep reason | ||
|
||
@setup | ||
Scenario: Feature Setup | ||
Given repository "test" with packages | ||
| Package | Tag | Value | | ||
| TestB | | | | ||
And repository "updates" with packages | ||
| Package | Tag | Value | | ||
| TestA | Obsoletes | TestB | | ||
When I save rpmdb | ||
And I enable repository "test" | ||
And I successfully run "dnf install -y TestB" | ||
Then rpmdb changes are | ||
| State | Packages | | ||
| installed | TestB | | ||
|
||
Scenario: Keep reason of obsolete package | ||
When I successfully run "dnf mark remove TestB" | ||
Then history userinstalled should | ||
| Action | Packages | | ||
| Not match | TestB | | ||
When I save rpmdb | ||
And I enable repository "updates" | ||
And I successfully run "dnf update -y" | ||
Then rpmdb changes are | ||
| State | Packages | | ||
| installed | TestA | | ||
| removed | TestB | | ||
And history userinstalled should | ||
| Action | Packages | | ||
| Not match | TestA | |
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
Oops, something went wrong.