Skip to content

Commit

Permalink
Add tests for reinstall command
Browse files Browse the repository at this point in the history
Reinstall should fail when source repository is disabled.
  • Loading branch information
edcuba committed Mar 2, 2017
1 parent 41f178c commit 5fd79b1
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions dnf-docker-test/features/reinstall-notavailable.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Feature: DNF/Behave test reinstall command

@setup
Scenario: Feature Setup
Given repository "test" with packages
| Package | Tag | Value |
| TestA | Requires | TestA-libs |
| TestA-libs | | |
When I save rpmdb
And I enable repository "test"
And I successfully run "dnf install -y TestA"
Then rpmdb changes are
| State | Packages |
| installed | TestA, TestA-libs |

Scenario: Reinstall package
When I save rpmdb
And I enable repository "test"
And I successfully run "dnf reinstall -y TestA-libs"
Then rpmdb changes are
| State | Packages |
| reinstalled | TestA-libs |

Scenario: Reinstall - pkg not available
When I save rpmdb
And I disable repository "test"
And I run "dnf reinstall -y TestA-libs"
Then the command should fail

0 comments on commit 5fd79b1

Please sign in to comment.