mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-12 12:33:02 +00:00
SSL setup for testing
Setup general ssl request, not just to api Basic tests comprised of non-ssl test copies Create the context only when request is http Refactor ssl key, cert, ca names Configure the AsyncHTTPClient at app start Change tests to import existing ones with ssl on Override __new__ in MockHub to turn on SSL
This commit is contained in:
@@ -508,7 +508,10 @@ class User:
|
||||
cert = self.settings['internal_ssl_cert']
|
||||
ca = self.settings['internal_ssl_ca']
|
||||
ssl_context = make_ssl_context(key, cert, cafile=ca)
|
||||
resp = await server.wait_up(http=True, timeout=spawner.http_timeout, ssl_context=ssl_context)
|
||||
resp = await server.wait_up(
|
||||
http=True,
|
||||
timeout=spawner.http_timeout,
|
||||
ssl_context=ssl_context)
|
||||
except Exception as e:
|
||||
if isinstance(e, TimeoutError):
|
||||
self.log.warning(
|
||||
|
Reference in New Issue
Block a user