mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
limit traefik permission check to ugo
ignores possible sticky bits, etc.
This commit is contained in:
@@ -11,7 +11,8 @@ def test_download_traefik(tmpdir):
|
||||
traefik_bin = tmpdir.mkdir("bin").join("traefik")
|
||||
traefik.ensure_traefik_binary(str(tmpdir))
|
||||
assert traefik_bin.exists()
|
||||
assert traefik_bin.stat().mode == 0o755
|
||||
# ignore higher-order permission bits, only verify ugo permissions
|
||||
assert (traefik_bin.stat().mode & 0o777) == 0o755
|
||||
|
||||
|
||||
def test_default_config(tmpdir, tljh_dir):
|
||||
|
||||
Reference in New Issue
Block a user