# connection, rather than waiting for a timeout or otherwise
# misbehaving.
with ExpectLog(gen_log, '(SSL Error|uncaught exception)'):
- self.http_client.fetch(self.get_url("/"), self.stop,
+ self.http_client.fetch(self.get_url("/").replace('https:', 'http:'),
+ self.stop,
request_timeout=3600,
connect_timeout=3600)
response = self.wait()
def get_http_client(self):
# Some versions of libcurl have deadlock bugs with ssl,
# so always run these tests with SimpleAsyncHTTPClient.
- return SimpleAsyncHTTPClient(io_loop=self.io_loop, force_instance=True)
+ return SimpleAsyncHTTPClient(io_loop=self.io_loop, force_instance=True,
+ defaults=dict(validate_cert=False))
def get_httpserver_options(self):
return dict(ssl_options=self.get_ssl_options())
def get_protocol(self):
return 'https'
- def fetch(self, path, **kwargs):
- return AsyncHTTPTestCase.fetch(self, path, validate_cert=False,
- **kwargs)
-
class LogTrapTestCase(unittest.TestCase):
"""A test case that captures and discards all logging output