Apply coderabit's latest hare-brained idea

This commit is contained in:
Adam Outler
2025-10-26 19:58:57 +00:00
parent cfffaf4503
commit d8c2dc0563

View File

@@ -655,15 +655,11 @@ def test_readonly_nginx_conf_mount(tmp_path: pathlib.Path) -> None:
Expected: "Write permission denied" error with path, guidance to add volume mounts. Expected: "Write permission denied" error with path, guidance to add volume mounts.
""" """
paths = _setup_mount_tree(tmp_path, "readonly_nginx_conf") paths = _setup_mount_tree(tmp_path, "readonly_nginx_conf")
_setup_zero_perm_dir(paths, "nginx_conf") volumes = _build_volume_args(paths, read_only={"nginx_conf"})
volumes = _build_volume_args(paths) result = _run_container("readonly-nginx-conf", volumes)
try: _assert_contains(result, "Write permission denied", result.args)
result = _run_container("readonly-nginx-conf", volumes) _assert_contains(result, "/services/config/nginx/conf.active", result.args)
_assert_contains(result, "Write permission denied", result.args) assert result.returncode != 0
_assert_contains(result, "/services/config/nginx/conf.active", result.args)
assert result.returncode != 0
finally:
_restore_zero_perm_dir(paths, "nginx_conf")
def test_readonly_services_run_mount(tmp_path: pathlib.Path) -> None: def test_readonly_services_run_mount(tmp_path: pathlib.Path) -> None: