-
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.
- Loading branch information
Showing
1 changed file
with
64 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
@xfail | ||
Feature: Deplist as commmand and option | ||
|
||
Scenario: Feature Setup | ||
Given I use the repository "upgrade_1" | ||
|
||
Scenario: Deplist as command | ||
When I successfully run "dnf deplist TestA" | ||
Then the command stdout should contain exactly | ||
""" | ||
package: TestA-1.0.0-1.noarch | ||
dependency: TestB | ||
provider: TestB-1.0.0-2.noarch | ||
package: TestA-1.0.0-2.noarch | ||
dependency: TestB | ||
provider: TestB-1.0.0-2.noarch | ||
""" | ||
|
||
Scenario: Deplist as repoquery option | ||
When I successfully run "dnf repoquery --deplist TestA" | ||
Then the command stdout should contain exactly | ||
""" | ||
package: TestA-1.0.0-1.noarch | ||
dependency: TestB | ||
provider: TestB-1.0.0-2.noarch | ||
package: TestA-1.0.0-2.noarch | ||
dependency: TestB | ||
provider: TestB-1.0.0-2.noarch | ||
""" | ||
|
||
Scenario: Deplist as repoquery option but using dnf bin | ||
When I successfully run "sh -c 'dnf repoquery --deplist TestA'" | ||
Then the command stdout should contain exactly | ||
""" | ||
package: TestA-1.0.0-1.noarch | ||
dependency: TestB | ||
provider: TestB-1.0.0-2.noarch | ||
package: TestA-1.0.0-2.noarch | ||
dependency: TestB | ||
provider: TestB-1.0.0-2.noarch | ||
""" | ||
|
||
Scenario: Deplist with --latest-limit | ||
When I successfully run "dnf repoquery --deplist --latest-limit 1 TestA" | ||
Then the command stdout should contain exactly | ||
""" | ||
package: TestA-1.0.0-2.noarch | ||
dependency: TestB | ||
provider: TestB-1.0.0-2.noarch | ||
""" | ||
|
||
Scenario: Deplist with --latest-limit and verbose | ||
When I execute "dnf" command "repoquery --deplist --latest-limit 1 --verbose TestA" with "success" | ||
Then line from "stdout" should "start" with "package: TestA-1.0.0-2.noarch" | ||
And line from "stdout" should "start" with " dependency: TestB" | ||
And line from "stdout" should "start" with " provider: TestB-1.0.0-1.noarch" | ||
And line from "stdout" should "start" with " provider: TestB-1.0.0-2.noarch" |