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

Add tests for dnf5 config-manager #1402

Merged
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
6 changes: 3 additions & 3 deletions dnf-behave-tests/dnf/config.feature
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ Scenario: Test usage of not existing config file
And stderr contains "Config file.*does not exist"


@dnf5
@bz1722493
Scenario: Lines that contain only whitespaces do not spoil previous config options
Given I enable plugin "config_manager"
And I create file "/test/dnf.conf" with
Given I create file "/test/dnf.conf" with
# the "empty" line between gpgcheck and baseurl intentionally contains spaces
"""
[main]
Expand All @@ -152,7 +152,7 @@ Scenario: Lines that contain only whitespaces do not spoil previous config optio

baseurl=http://some.url/
"""
When I execute dnf with args "-c {context.dnf.installroot}/test/dnf.conf config-manager testingrepo --dump"
When I execute dnf with args "--config={context.dnf.installroot}/test/dnf.conf --dump-repo-config=testingrepo"
Then stdout contains lines
"""
gpgcheck = 1
Expand Down
Loading
Loading