Skip to content

Commit

Permalink
Annotate failing repoquery tests with links to issues
Browse files Browse the repository at this point in the history
Also simplifies `@dnf5` tags and removes couple tests for dropped `--all`
option.
  • Loading branch information
kontura authored and pkratoch committed Oct 18, 2024
1 parent c772b71 commit f1e0487
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 111 deletions.
2 changes: 1 addition & 1 deletion dnf-behave-tests/dnf/repoquery/deps.feature
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Given I successfully execute dnf with args "install middle3"
bottom5-1:1.0-1.x86_64
"""

# missing --tree option
# missing --tree option: https://github.com/rpm-software-management/dnf5/issues/913
@xfail
Scenario: repoquery --requires --resolve --recursive --tree NAME-VERSION
When I execute dnf with args "repoquery --requires --resolve --recursive --tree top1-2.0"
Expand Down
20 changes: 1 addition & 19 deletions dnf-behave-tests/dnf/repoquery/globs.feature
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@dnf5
Feature: Glob tests for expanding all the various glob patterns.

Background:
Given I use repository "repoquery-globs"


@dnf5
# <name> globs
Scenario: repoquery '*' (lists all available packages)
When I execute dnf with args "repoquery '*'"
Expand Down Expand Up @@ -33,7 +33,6 @@ Scenario: repoquery '*' (lists all available packages)
toppler-1:1.0-1.x86_64
"""

@dnf5
Scenario: repoquery top*
When I execute dnf with args "repoquery top*"
Then the exit code is 0
Expand All @@ -55,7 +54,6 @@ Scenario: repoquery top*
toppler-1:1.0-1.x86_64
"""

@dnf5
Scenario: repoquery top?d
When I execute dnf with args "repoquery top?d"
Then the exit code is 0
Expand All @@ -69,7 +67,6 @@ Scenario: repoquery top?d
toped-1:1.0-1.x86_64
"""

@dnf5
Scenario: repoquery top?{d,it}
When I execute dnf with args "repoquery top?{{d,it}}"
Then the exit code is 0
Expand All @@ -87,7 +84,6 @@ Scenario: repoquery top?{d,it}
topgit-1:1.17.6-1.x86_64
"""

@dnf5
Scenario: repoquery top[a-f]d
When I execute dnf with args "repoquery top[a-f]d"
Then the exit code is 0
Expand All @@ -101,7 +97,6 @@ Scenario: repoquery top[a-f]d
toped-1:1.0-1.x86_64
"""

@dnf5
Scenario: repoquery top[a-fg]*
When I execute dnf with args "repoquery top[a-fg]*"
Then the exit code is 0
Expand All @@ -119,7 +114,6 @@ Scenario: repoquery top[a-fg]*
topgit-1:1.17.6-1.x86_64
"""

@dnf5
Scenario: repoquery top[^a-g]*
When I execute dnf with args "repoquery top[^a-g]*"
Then the exit code is 0
Expand All @@ -133,7 +127,6 @@ Scenario: repoquery top[^a-g]*
toppler-1:1.0-1.x86_64
"""

@dnf5
Scenario: repoquery top{ed,pler}
When I execute dnf with args "repoquery top{{ed,pler}}"
Then the exit code is 0
Expand All @@ -149,7 +142,6 @@ Scenario: repoquery top{ed,pler}
toppler-1:1.0-1.x86_64
"""

@dnf5
Scenario: repoquery top[!n-z]{d,aaa,it}
When I execute dnf with args "repoquery top[!n-z]{{d,aaa,it}}"
Then the exit code is 0
Expand All @@ -167,7 +159,6 @@ Scenario: repoquery top[!n-z]{d,aaa,it}
topgit-1:1.17.6-1.x86_64
"""

@dnf5
# https://github.com/rpm-software-management/dnf5/issues/614
Scenario: repoquery *top[-a-f]*
When I execute dnf with args "repoquery *top[-a-f]*"
Expand All @@ -187,7 +178,6 @@ Scenario: repoquery *top[-a-f]*
"""


@dnf5
# https://github.com/rpm-software-management/dnf5/issues/614
# <name-version> globs
Scenario: repoquery *top[-a-f]*-1.0
Expand All @@ -205,7 +195,6 @@ Scenario: repoquery *top[-a-f]*-1.0
toped-1:1.0-1.x86_64
"""

@dnf5
# https://github.com/rpm-software-management/dnf5/issues/614
Scenario: repoquery *top[-a-f]*-1.[1-4]*
When I execute dnf with args "repoquery *top[-a-f]*-1.[1-4]*"
Expand All @@ -220,7 +209,6 @@ Scenario: repoquery *top[-a-f]*-1.[1-4]*
desktop-utils-1:1.23.9-1.x86_64
"""

@dnf5
# https://github.com/rpm-software-management/dnf5/issues/614
Scenario: repoquery *top[-a-f]*-1.[!1-4]*.x86_64
When I execute dnf with args "repoquery *top[-a-f]*-1.[!1-4]*.x86_64"
Expand All @@ -235,7 +223,6 @@ Scenario: repoquery *top[-a-f]*-1.[!1-4]*.x86_64
toped-1:1.0-1.x86_64
"""

@dnf5
Scenario: repoquery *top*-1.{17,23,99}*
When I execute dnf with args "repoquery *top*-1.{{17,23,99}}*"
Then the exit code is 0
Expand All @@ -251,7 +238,6 @@ Scenario: repoquery *top*-1.{17,23,99}*
topgit-1:1.17.6-1.x86_64
"""

@dnf5
Scenario: repoquery desktop-utils-[1-5].23.9
When I execute dnf with args "repoquery desktop-utils-[1-5].23.9"
Then the exit code is 0
Expand All @@ -265,7 +251,6 @@ Scenario: repoquery desktop-utils-[1-5].23.9
desktop-utils-1:1.23.9-1.x86_64
"""

@dnf5
Scenario: repoquery with argument with epoch 0 and replaced '-' by wild card
# The test is aimed for full nevra query, because NEVRA parser cannot split an argument correctly
Given I use repository "dnf-ci-fedora"
Expand All @@ -280,7 +265,6 @@ Scenario: repoquery with argument with epoch 0 and replaced '-' by wild card
postgresql-devel-0:9.6.5-1.fc29.x86_64
"""

@dnf5
Scenario: repoquery with argument without epoch 0 and replaced '-' by wild card
# The test is aimed for full nevra query, because NEVRA parser cannot split an argument correctly
Given I use repository "dnf-ci-fedora"
Expand All @@ -295,7 +279,6 @@ Scenario: repoquery with argument without epoch 0 and replaced '-' by wild card
postgresql-devel-0:9.6.5-1.fc29.x86_64
"""

@dnf5
Scenario: repoquery with argument with epoch 1 and replaced '-' by wild card
# The test is aimed for full nevra query, because NEVRA parser cannot split an argument correctly
When I execute dnf with args "repoquery desktop-utils-1:1.23.9*1.x86_64"
Expand All @@ -309,7 +292,6 @@ Scenario: repoquery with argument with epoch 1 and replaced '-' by wild card
desktop-utils-1:1.23.9-1.x86_64
"""

@dnf5
Scenario: repoquery with argument without epoch 1 and replaced '-' by wild card
# The test is aimed for full nevra query, because NEVRA parser cannot split an argument correctly
When I execute dnf with args "repoquery desktop-utils-1.23.9*1.x86_64"
Expand Down
Loading

0 comments on commit f1e0487

Please sign in to comment.