mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Fixed test
This commit is contained in:
@@ -196,15 +196,14 @@ def test_cull_service_default():
|
|||||||
|
|
||||||
cull_cmd = [
|
cull_cmd = [
|
||||||
sys.executable, '/srv/src/tljh/cull_idle_servers.py',
|
sys.executable, '/srv/src/tljh/cull_idle_servers.py',
|
||||||
'--timeout', '600', '--cull-every', '60', '--concurrency', '5',
|
'--timeout=600', '--cull-every=60', '--concurrency=5',
|
||||||
'--max-age', '0'
|
'--max-age=0'
|
||||||
]
|
]
|
||||||
assert c.JupyterHub.services == [{
|
assert c.JupyterHub.services == [{
|
||||||
'name': 'cull-idle',
|
'name': 'cull-idle',
|
||||||
'admin': True,
|
'admin': True,
|
||||||
'command': cull_cmd,
|
'command': cull_cmd,
|
||||||
}]
|
}]
|
||||||
assert c.TraefikTomlProxy.traefik_api_username == 'api_admin'
|
|
||||||
|
|
||||||
|
|
||||||
def test_set_cull_service():
|
def test_set_cull_service():
|
||||||
@@ -222,16 +221,14 @@ def test_set_cull_service():
|
|||||||
})
|
})
|
||||||
cull_cmd = [
|
cull_cmd = [
|
||||||
sys.executable, '/srv/src/tljh/cull_idle_servers.py',
|
sys.executable, '/srv/src/tljh/cull_idle_servers.py',
|
||||||
'--timeout', '600', '--cull-every', '10', '--concurrency', '5',
|
'--timeout=600', '--cull-every=10', '--concurrency=5',
|
||||||
'--max-age', '60', '--cull-users'
|
'--max-age=60', '--cull-users'
|
||||||
]
|
]
|
||||||
assert c.JupyterHub.services == [{
|
assert c.JupyterHub.services == [{
|
||||||
'name': 'cull-idle',
|
'name': 'cull-idle',
|
||||||
'admin': True,
|
'admin': True,
|
||||||
'command': cull_cmd,
|
'command': cull_cmd,
|
||||||
}]
|
}]
|
||||||
assert c.TraefikTomlProxy.traefik_api_username == 'api_admin'
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def test_load_secrets(tljh_dir):
|
def test_load_secrets(tljh_dir):
|
||||||
|
|||||||
Reference in New Issue
Block a user