jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] Update domain for SSL expiry tests ......................................................................
[FIX] Update domain for SSL expiry tests
The domain has changed from testssl-expire.disig.sk to testssl-expire-r2i2.disig.sk.
Change-Id: I9d8543fa1ee36684807ca82e3921a174e86c7c2b --- M tests/http_tests.py 1 file changed, 4 insertions(+), 4 deletions(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/http_tests.py b/tests/http_tests.py index 03a5092..4922a81 100644 --- a/tests/http_tests.py +++ b/tests/http_tests.py @@ -124,17 +124,17 @@
"""HTTPS certificate test."""
- hostname = 'testssl-expire.disig.sk' + hostname = 'testssl-expire-r2i2.disig.sk'
def test_https_cert_error(self): """Test if http.fetch respects disable_ssl_certificate_validation.""" self.assertRaises(pywikibot.FatalServerError, http.fetch, - uri='https://testssl-expire.disig.sk/index.en.html') + uri='https://testssl-expire-r2i2.disig.sk/index.en.html')
with warnings.catch_warnings(record=True) as warning_log: response = http.fetch( - uri='https://testssl-expire.disig.sk/index.en.html', + uri='https://testssl-expire-r2i2.disig.sk/index.en.html', disable_ssl_certificate_validation=True) r = response.content self.assertIsInstance(r, unicode) @@ -144,7 +144,7 @@ http.session.close() # but first clear the connection self.assertRaises(pywikibot.FatalServerError, http.fetch, - uri='https://testssl-expire.disig.sk/index.en.html') + uri='https://testssl-expire-r2i2.disig.sk/index.en.html')
# Verify that the warning occurred self.assertEqual(len(warning_log), 1)
pywikibot-commits@lists.wikimedia.org