Commit a22a0946 authored by FichteFoll's avatar FichteFoll

Verify that repository url is using https

We require to use the https protocol for custom-hosted repositories
since 2014-11-20, it just wasn't reflected in the tests.

See #3749.
parent 157913f8
......@@ -600,8 +600,12 @@ class DefaultChannelTests(TestContainer, unittest.TestCase):
def test_indentation(self):
return self._test_indentation(None, self.source)
def test_channel_repo_order(self):
def test_channel_repositories(self):
repos = self.j['repositories']
for repo in repos:
self.assertRegex(repo, r"^(\.|https://)",
"Repositories must be relative urls or use the "
"HTTPS protocol")
self.assertEqual(repos, sorted(repos, key=str_cls.lower),
"Repositories must be sorted alphabetically")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment