mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Allow roles to be installed from archives on github
Ensure that the automated scm determination for github.com repos still copes with .tar.gz archive files. Handling .zip archives is left as an exercise for the interested reader
This commit is contained in:
@@ -825,7 +825,7 @@ class TestUtils(unittest.TestCase):
|
||||
}
|
||||
),
|
||||
(
|
||||
# test that http://github URLs are assumed git+http://
|
||||
# test that http://github URLs are assumed git+http:// unless they end in .tar.gz
|
||||
"http://github.com/ansible/fakerole/fake",
|
||||
{
|
||||
'scm' : 'git',
|
||||
@@ -833,6 +833,16 @@ class TestUtils(unittest.TestCase):
|
||||
'version' : '',
|
||||
'name' : 'fake'
|
||||
}
|
||||
),
|
||||
(
|
||||
# test that http://github URLs are assumed git+http:// unless they end in .tar.gz
|
||||
"http://github.com/ansible/fakerole/fake/archive/master.tar.gz",
|
||||
{
|
||||
'scm' : None,
|
||||
'src' : 'http://github.com/ansible/fakerole/fake/archive/master.tar.gz',
|
||||
'version' : '',
|
||||
'name' : 'master'
|
||||
}
|
||||
)
|
||||
]
|
||||
for (spec, result) in tests:
|
||||
|
||||
Reference in New Issue
Block a user