Skip to content

Commit

Permalink
dnf5 config-manager: Sync with upstream - Add repoid to gener repo name
Browse files Browse the repository at this point in the history
The new upstream code adds the repository id to the generated
repository name.
  • Loading branch information
jrohel committed Jan 4, 2024
1 parent 4360d2a commit e9e7c7b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions dnf-behave-tests/dnf/plugins-core/config-manager-addrepo.feature
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Scenario: test "addrepo" from "baseurl", "enabled=1" is set by default
And file "/etc/yum.repos.d/something.com_os_.repo" contents is
"""
[something.com_os_]
name=created by dnf5 config-manager
name=something.com_os_ - Created by dnf5 config-manager
enabled=1
baseurl=http://something.com/os/
"""
Expand All @@ -30,7 +30,7 @@ Scenario: test "addrepo" from "baseurl" with user defined repository id (--id=)
And file "/etc/yum.repos.d/test.repo" contents is
"""
[test]
name=created by dnf5 config-manager
name=test - Created by dnf5 config-manager
enabled=1
baseurl=http://something.com/os/
"""
Expand All @@ -42,7 +42,7 @@ Scenario: test "addrepo" from "baseurl" with user defined destination file name
And file "/etc/yum.repos.d/test.repo" contents is
"""
[something.com_os_]
name=created by dnf5 config-manager
name=something.com_os_ - Created by dnf5 config-manager
enabled=1
baseurl=http://something.com/os/
"""
Expand All @@ -54,7 +54,7 @@ Scenario: "addrepo" from "baseurl" with user defined destination file name, test
And file "/etc/yum.repos.d/test.repo" contents is
"""
[something.com_os_]
name=created by dnf5 config-manager
name=something.com_os_ - Created by dnf5 config-manager
enabled=1
baseurl=http://something.com/os/
"""
Expand All @@ -72,7 +72,7 @@ Scenario: test "addrepo" from "baseurl", set more options
And file "/etc/yum.repos.d/something.com_os_.repo" contents is
"""
[something.com_os_]
name=created by dnf5 config-manager
name=something.com_os_ - Created by dnf5 config-manager
enabled=1
baseurl=http://something.com/os/
gpgcheck=1
Expand All @@ -86,7 +86,7 @@ Scenario: test "addrepo" from "baseurl", set option multiple times with the same
And file "/etc/yum.repos.d/something.com_os_.repo" contents is
"""
[something.com_os_]
name=created by dnf5 config-manager
name=something.com_os_ - Created by dnf5 config-manager
enabled=1
baseurl=http://something.com/os/
gpgcheck=1
Expand Down Expand Up @@ -126,7 +126,7 @@ Scenario: test "addrepo" from "baseurl", destination directory does not exist, "
And file "/etc/yum.repos.d/test.repo" contents is
"""
[test]
name=created by dnf5 config-manager
name=test - Created by dnf5 config-manager
enabled=1
baseurl=http://something.com/os/
"""
Expand Down Expand Up @@ -171,7 +171,7 @@ Scenario: test "addrepo" from "baseurl", overwrite existing repo file (--overwri
And file "/etc/yum.repos.d/repo1.repo" contents is
"""
[repo1]
name=created by dnf5 config-manager
name=repo1 - Created by dnf5 config-manager
enabled=1
baseurl=http://something.com/os/
"""
Expand All @@ -188,7 +188,7 @@ Scenario: test "addrepo" from "baseurl", add repo to existing file (--add-or-rep
enabled=1
baseurl=http://something1.com/os/
[test]
name=created by dnf5 config-manager
name=test - Created by dnf5 config-manager
enabled=1
baseurl=http://something.com/os/
"""
Expand All @@ -201,7 +201,7 @@ Scenario: test "addrepo" from "baseurl", replace repo in existing file (--add-or
And file "/etc/yum.repos.d/repo1.repo" contents is
"""
[repo1]
name=created by dnf5 config-manager
name=repo1 - Created by dnf5 config-manager
enabled=1
baseurl=http://something.com/os/
"""
Expand Down

0 comments on commit e9e7c7b

Please sign in to comment.