Skip to content

Commit

Permalink
Adjust for dnf5: Lines with only spaces don't spoil previous cfg option
Browse files Browse the repository at this point in the history
Original dnf4 test "Scenario: Lines that contain only whitespaces do not
spoil previous config options" uses "config-manager --dump" to verify
the value of the repository configuration option.

In dnf5, the global configuration argument "--dump-repo-config" is used
instead.
  • Loading branch information
jrohel committed Nov 13, 2023
1 parent 2ced3c6 commit 13e6514
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 13e6514

Please sign in to comment.