Skip to content

Commit

Permalink
Enable provides feature for dnf5
Browse files Browse the repository at this point in the history
  • Loading branch information
inknos committed Nov 23, 2023
1 parent fefd6eb commit 6e01c19
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions dnf-behave-tests/dnf/provides.feature
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# @dnf5
# TODO(nsella) Unknown argument "provides" for command "microdnf"
@dnf5
Feature: Test for dnf provides


Expand Down Expand Up @@ -35,11 +34,26 @@ Scenario: dnf provides webclient - installed and in repos package wget provides
Then stdout contains "wget-1.19.6-5.fc29[^R]+Repo[ \t]+: dnf-ci-fedora-updates"
And stdout does not contain "(glibc)|(setup)"


Scenario: dnf provides nonexistentprovide
When I execute dnf with args "provides nonexistentprovde"
Then the exit code is 1
And stderr is
And dnf4 stderr is
"""
Error: No matches found. If searching for a file, try specifying the full path or using a wildcard prefix ("*/") at the beginning.
"""
And dnf5 stderr is
"""
No matches found. If searching for a file, try specifying the full path or using a wildcard prefix ("*/") at the beginning.
"""

Scenario: dnf provides existent and nonexistentprovide
When I execute dnf with args "provides webclient nonexistentprovide"
Then dnf4 exit code is 0
And stdout contains "wget-1.19.5-5.fc29[^R]+Repo[ \t]+: dnf-ci-fedora"
And stdout does not contain "(glibc)|(setup)"
And dnf5 exit code is 1
And dnf5 stderr is
"""
No matches found for nonexistentprovide.
If searching for a file, try specifying the full path or using a wildcard prefix ("*/") at the beginning.
"""

0 comments on commit 6e01c19

Please sign in to comment.