Fix tests
Some checks failed
CI / test (push) Successful in 50s
CI / test (almalinux, docker.io/library/almalinux:9, python3.11) (push) Failing after 2m36s
CI / test (debian, docker.io/library/debian:13, python3) (push) Failing after 3m2s
Lint / test (push) Successful in 1m15s

This commit is contained in:
Miguel Jacq 2026-06-30 11:11:38 +10:00
parent 737316d507
commit 4146aa997b
Signed by: mig5
GPG key ID: 03906B4110AAD3B8
4 changed files with 22 additions and 1 deletions

View file

@ -969,6 +969,10 @@ def test_manifest_fqdn_existing_output_rejects_symlink_component(tmp_path: Path)
_write_state(bundle, state)
(out / "inventory").mkdir(parents=True)
# The output path itself must be root-safe so this test reaches the
# intended nested-symlink guard even when CI/root uses a permissive umask.
out.chmod(0o700)
(out / "inventory").chmod(0o700)
escape.mkdir()
(out / "inventory" / "host_vars").symlink_to(escape, target_is_directory=True)