mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Update test_proxy tests
This commit is contained in:
@@ -63,9 +63,9 @@ def test_manual_https(preserve_config):
|
|||||||
"/CN=tljh.jupyer.org",
|
"/CN=tljh.jupyer.org",
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
set_config_value(CONFIG_FILE, "https.enabled", True)
|
set_config_value(CONFIG_FILE, "https.enabled", True, True)
|
||||||
set_config_value(CONFIG_FILE, "https.tls.key", key)
|
set_config_value(CONFIG_FILE, "https.tls.key", key, True)
|
||||||
set_config_value(CONFIG_FILE, "https.tls.cert", cert)
|
set_config_value(CONFIG_FILE, "https.tls.cert", cert, True)
|
||||||
reload_component("proxy")
|
reload_component("proxy")
|
||||||
for i in range(10):
|
for i in range(10):
|
||||||
time.sleep(i)
|
time.sleep(i)
|
||||||
@@ -89,7 +89,7 @@ def test_manual_https(preserve_config):
|
|||||||
|
|
||||||
# cleanup
|
# cleanup
|
||||||
shutil.rmtree(ssl_dir)
|
shutil.rmtree(ssl_dir)
|
||||||
set_config_value(CONFIG_FILE, "https.enabled", False)
|
set_config_value(CONFIG_FILE, "https.enabled", False, True)
|
||||||
|
|
||||||
reload_component("proxy")
|
reload_component("proxy")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user