Skip to content

Commit

Permalink
Add tests for history info when working with groups
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukáš Hrázký authored and kontura committed Jun 23, 2020
1 parent 6324217 commit 0dd0e12
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions dnf-behave-tests/features/history-info.feature
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,35 @@ Scenario: history info shows comment to transaction
When I execute dnf with args "history info"
Then the exit code is 0
Then stdout contains "Comment : this_is_a_comment"


Scenario: history info for installing a group
Given I use repository "dnf-ci-thirdparty"
When I execute dnf with args "group install DNF-CI-Testgroup"
Then the exit code is 0
And History info should match
| Key | Value |
| Return-Code | Success |
| Install | filesystem-3.9-2.fc29.x86_64 |
| Install | lame-3.100-4.fc29.x86_64 |
| Install | lame-libs-3.100-4.fc29.x86_64 |
| Install | setup-2.12.1-1.fc29.noarch |
| Install | @dnf-ci-testgroup |


Scenario: history info for installing a group when there are upgrades
Given I successfully execute dnf with args "install lame"
And I use repository "dnf-ci-thirdparty"
And I use repository "dnf-ci-fedora-updates"
When I execute dnf with args "group install dnf-ci-testgroup"
Then the exit code is 0
And History info should match
| Key | Value |
| Return-Code | Success |
| Install | filesystem-3.9-2.fc29.x86_64 |
| Install | setup-2.12.1-1.fc29.noarch |
| Upgrade | lame-3.100-5.fc29.x86_64 |
| Upgraded | lame-3.100-4.fc29.x86_64 |
| Upgrade | lame-libs-3.100-5.fc29.x86_64 |
| Upgraded | lame-libs-3.100-4.fc29.x86_64 |
| Install | @dnf-ci-testgroup |

0 comments on commit 0dd0e12

Please sign in to comment.