Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove tests from repoquery/files.feature and update config.feature error message #1537

Merged
merged 2 commits into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dnf-behave-tests/dnf/config.feature
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ Scenario: Dnf prints reasonable error when remote config file is not downloadabl
And stderr matches line by line
"""
Config error: Configuration file URL "xxxx://localhost:[\d]+/does-not-exist\.conf" could not be downloaded:
Curl error \(1\): Unsupported protocol for xxxx://localhost:[\d]+/does-not-exist\.conf \[Protocol "xxxx" not supported or disabled in libcurl\]
Curl error \(1\): Unsupported protocol for xxxx://localhost:[\d]+/does-not-exist\.conf \[Protocol "xxxx" not supported.*\]
"""
# host unknown
When I execute dnf with args "-c http://the_host:{context.dnf.ports[/remotedir]}/does-not-exist.conf repolist repo-from-remote-config"
Expand Down
35 changes: 0 additions & 35 deletions dnf-behave-tests/dnf/repoquery/files.feature
Original file line number Diff line number Diff line change
@@ -1,30 +1,6 @@
@dnf5
Feature: Repoquery tests working with files


Scenario: list files in an rpm including files in filelists.xml
Given I use repository "repoquery-files"
When I execute dnf with args "repoquery a.x86_64 -l"
Then the exit code is 0
And stdout is
"""
<REPOSYNC>
/root-file
/usr/bin/a-binary
"""


Scenario: filter by file in primary.xml
Given I use repository "repoquery-files"
When I execute dnf with args "repoquery --file /usr/bin/a-binary"
Then the exit code is 0
And stdout is
"""
<REPOSYNC>
a-0:1.0-1.fc29.x86_64
"""


@RHEL-5747
Scenario: filter by file in primary.xml but force command only search in rpm names -> empty output
Given I use repository "repoquery-files"
Expand All @@ -35,14 +11,3 @@ Given I use repository "repoquery-files"
<REPOSYNC>
"""


@bz2276012
Scenario: filter by file in filelists.xml
Given I use repository "repoquery-files"
When I execute dnf with args "repoquery --file /root-file"
Then the exit code is 0
And stdout is
"""
<REPOSYNC>
a-0:1.0-1.fc29.x86_64
"""
Loading