-
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.
Tests for dnf5daemon enable/disable repo functionality
- Loading branch information
1 parent
7c6c7cb
commit addcc68
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
dnf-behave-tests/dnf/dnf5daemon/repo-enable-disable.feature
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,36 @@ | ||
@dnf5daemon | ||
Feature: Enable/disable repo functionality for dnf5daemon | ||
|
||
|
||
Background: | ||
Given I use repository "dnf-ci-fedora" | ||
And I use repository "dnf-ci-fedora-updates" | ||
|
||
|
||
Scenario: Disable existing repositories | ||
Given I execute dnf with args "repo disable dnf-ci-fedora dnf-ci-fedora-updates" | ||
Then the exit code is 0 | ||
When I execute dnf with args "repolist" | ||
Then stdout is empty | ||
|
||
|
||
Scenario: Enable disabled repositories | ||
Given I execute dnf with args "repo disable dnf-ci-fedora dnf-ci-fedora-updates" | ||
Then the exit code is 0 | ||
When I execute dnf with args "repo enable dnf-ci-fedora-updates" | ||
Then the exit code is 0 | ||
When I execute dnf with args "repolist" | ||
Then stdout is | ||
""" | ||
repo id repo name | ||
dnf-ci-fedora-updates dnf-ci-fedora-updates test repository | ||
""" | ||
|
||
|
||
Scenario: Enable non-existing repositories | ||
Given I execute dnf with args "repo enable unknown-repo1 dnf-ci-fedora unknown-repo2" | ||
Then the exit code is 1 | ||
And stderr is | ||
""" | ||
[org.rpm.dnf.v0.rpm.Repo.NoMatchingIdError] No matching repositories found for following ids: unknown-repo1,unknown-repo2 | ||
""" |