Skip to content

Commit

Permalink
Add test for replay group install without package_types
Browse files Browse the repository at this point in the history
  • Loading branch information
kontura committed Jul 15, 2024
1 parent 26975be commit aea3dda
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions dnf-behave-tests/dnf/transaction-sr/replay.feature
Original file line number Diff line number Diff line change
Expand Up @@ -1521,3 +1521,31 @@ Given I create file "/{context.dnf.tempdir}/transaction/transaction.json" with
"""
Something like: Cannot install package with reason Group because 'test-group` is not installed.
"""


Scenario: Replay installing a group without package_types specified sets no package types
Given I create file "/{context.dnf.tempdir}/transaction/transaction.json" with
"""
{
"groups": [
{
"action": "Install",
"id": "test-group",
"reason": "User",
}
],
"version": "1.0"
}
"""
When I execute dnf with args "replay ./transaction"
Then the exit code is 0
And Transaction is following
| Action | Package |
| group-install | Test Group |
And dnf5 transaction items for transaction "last" are
| action | package | reason | repository |
| Install | test-group | User | transaction-sr |
And group state is
| id | package_types | packages | userinstalled |
| test-group | | top-a | True |

0 comments on commit aea3dda

Please sign in to comment.