Merge branch 'stable-2.15' into stable-2.16

* stable-2.15:
  Set version to 2.15.14-SNAPSHOT
  Convert http links to https

Change-Id: Ib427688f1d09de6747fe198ea402bf708e937889
This commit is contained in:
David Pursehouse
2019-04-23 19:41:20 +09:00
5 changed files with 11 additions and 11 deletions

View File

@@ -29,18 +29,18 @@ class TestResolveUrl(unittest.TestCase):
def testKnownRedirect(self):
url = resolve_url('MAVEN_CENTRAL:foo.jar',
{'MAVEN_CENTRAL': 'http://my.company.mirror/maven2'})
self.assertEqual(url, 'http://my.company.mirror/maven2/foo.jar')
{'MAVEN_CENTRAL': 'https://my.company.mirror/maven2'})
self.assertEqual(url, 'https://my.company.mirror/maven2/foo.jar')
def testCustom(self):
url = resolve_url('http://maven.example.com/release/foo.jar', {})
self.assertEqual(url, 'http://maven.example.com/release/foo.jar')
url = resolve_url('https://maven.example.com/release/foo.jar', {})
self.assertEqual(url, 'https://maven.example.com/release/foo.jar')
def testCustomRedirect(self):
url = resolve_url('MAVEN_EXAMPLE:foo.jar',
{'MAVEN_EXAMPLE':
'http://maven.example.com/release'})
self.assertEqual(url, 'http://maven.example.com/release/foo.jar')
'https://maven.example.com/release'})
self.assertEqual(url, 'https://maven.example.com/release/foo.jar')
if __name__ == '__main__':