-
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.
Enable history-undo-dependant.feature and history-undo-obsoletes.feature
- Undoing install of dependecies that are not used by anything else is now described as `remove-unused`.
- Loading branch information
Showing
2 changed files
with
13 additions
and
12 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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
@dnf5 | ||
Feature: Transaction history undo | ||
|
||
@bz1700529 | ||
Scenario: Undo module install with dependent userinstalled package | ||
Given I use repository "dnf-ci-fedora" | ||
And I use repository "dnf-ci-fedora-modular" | ||
# install module that contains postgresql-server | ||
When I execute dnf with args "module install postgresql/server" | ||
Then the exit code is 0 | ||
And Transaction contains | ||
| Action | Package | | ||
| install-group | postgresql-server-0:9.6.8-1.module_1710+b535a823.x86_64 | | ||
And I successfully execute dnf with args "module enable postgresql/server" | ||
And I successfully execute dnf with args "install postgresql-server-0:9.6.8-1.module_1710+b535a823.x86_64" | ||
# install package, that requires postgresql-server | ||
When I execute dnf with args "install postgresql-test" | ||
Then the exit code is 0 | ||
And I successfully execute dnf with args "install postgresql-test" | ||
# try to undo module install transaction | ||
When I execute dnf with args "history undo last-1" | ||
# the transaction is not supposed to reinstall required packages, but to fail | ||
Then the exit code is 1 | ||
And stdout does not contain "Reinstalling\s+: postgresql-server-9\.6\.8-1\.module_1710\+b535a823" | ||
And stdout is | ||
""" | ||
<REPOSYNC> | ||
""" | ||
And stderr contains "package postgresql-test-9\.6\.8-1\.module_1710\+b535a823\.x86_64 requires postgresql-server\(x86-64\) = 9\.6\.8-1\.module_1710\+b535a823, but none of the providers can be installed" |
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