-
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.
Adjusted dnf repolist tests for dnf5
- Loading branch information
1 parent
f960456
commit f280f0f
Showing
3 changed files
with
28 additions
and
119 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,38 +1,33 @@ | ||
Feature: Repolist when all repositories are disabled | ||
@dnf5 | ||
Feature: Repo list (alias repolist) when all repositories are disabled | ||
|
||
Background: | ||
Given I use repository "dnf-ci-fedora" with configuration | ||
|key | value | | ||
| enabled | 0 | | ||
|
||
|
||
@dnf5 | ||
Scenario: Repolist without arguments | ||
When I execute dnf with args "repolist" | ||
Then the exit code is 0 | ||
And stdout is empty | ||
|
||
|
||
@dnf5 | ||
Scenario: Repolist with "enabled" | ||
When I execute dnf with args "repolist enabled" | ||
Scenario: Repo list with "--enabled" | ||
When I execute dnf with args "repo list --enabled" | ||
Then the exit code is 0 | ||
And stdout is empty | ||
|
||
|
||
# @dnf5 | ||
# TODO(nsella) different stdout | ||
Scenario: Repolist with "disabled" | ||
When I execute dnf with args "repolist disabled" | ||
Scenario: Repo list with "--disabled" | ||
When I execute dnf with args "repo list --disabled" | ||
Then the exit code is 0 | ||
And stdout contains "dnf-ci-fedora\s+dnf-ci-fedora" | ||
|
||
|
||
# @dnf5 | ||
# TODO(nsella) different stdout | ||
Scenario: Repolist with "all" | ||
Scenario: Repo list with "--all" | ||
Given I use repository "dnf-ci-fedora-updates" | ||
When I execute dnf with args "repolist all" | ||
When I execute dnf with args "repo list --all" | ||
Then the exit code is 0 | ||
And stdout contains "dnf-ci-fedora\s+dnf-ci-fedora test repository\s+disabled" | ||
And stdout contains "dnf-ci-fedora-updates\s+dnf-ci-fedora-updates test repository\s+enabled" |
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,31 +1,30 @@ | ||
# @dnf5 | ||
# TODO(nsella) different stdout | ||
Feature: Repolist when there are no repositories | ||
@dnf5 | ||
Feature: Repo list (alias repolist) when there are no repositories | ||
|
||
|
||
Scenario: Repolist without arguments | ||
When I execute dnf with args "repolist" | ||
Then the exit code is 0 | ||
And stdout is empty | ||
And stderr contains "No repositories available" | ||
And stderr is empty | ||
|
||
|
||
Scenario: Repolist with "enabled" | ||
When I execute dnf with args "repolist enabled" | ||
Scenario: Repo list with "--enabled" | ||
When I execute dnf with args "repo list --enabled" | ||
Then the exit code is 0 | ||
And stdout is empty | ||
And stderr contains "No repositories available" | ||
And stderr is empty | ||
|
||
|
||
Scenario: Repolist with "disabled" | ||
When I execute dnf with args "repolist disabled" | ||
Scenario: Repo list with "--disabled" | ||
When I execute dnf with args "repo list --disabled" | ||
Then the exit code is 0 | ||
And stdout is empty | ||
And stderr contains "No repositories available" | ||
And stderr is empty | ||
|
||
|
||
Scenario: Repolist with "all" | ||
When I execute dnf with args "repolist all" | ||
Scenario: Repo list with "--all" | ||
When I execute dnf with args "repo list --all" | ||
Then the exit code is 0 | ||
And stdout is empty | ||
And stderr contains "No repositories available" | ||
And stderr is empty |
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