mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-30 22:31:25 -07:00
Improved handling of role_version in repo_url_to_role_name
This commit is contained in:
parent
1803976a40
commit
4803e923ff
2 changed files with 4 additions and 1 deletions
|
@ -780,6 +780,7 @@ class TestUtils(unittest.TestCase):
|
|||
|
||||
def test_repo_url_to_role_name(self):
|
||||
tests = [("http://git.example.com/repos/repo.git", "repo"),
|
||||
("ssh://git@git.example.com:repos/role-name", "role-name")]
|
||||
("ssh://git@git.example.com:repos/role-name", "role-name"),
|
||||
("ssh://git@git.example.com:repos/role-name,v0.1", "role-name")]
|
||||
for (url, result) in tests:
|
||||
self.assertEqual(ansible.utils.repo_url_to_role_name(url), result)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue