Files
headquarter/apps/api/tests/.pi-map.index.md
T
Developer 47de2a0133 fix: check root before sudo when creating /workspace symlink
The previous ordering checked SUDO before checking if the process was
already running as root. When Docker starts the container with a
non-root user, SUDO may be empty, but the real fix is that the
entrypoint should try root first (e.g. when the image is started as
root) and only then fall back to sudo.

- Reorder symlink creation logic: root first, then sudo, then best-effort
- Update unit test to assert root is checked before sudo

Quality gates:
- pytest tests/unit: 208 passed
- ruff: clean on changed files
- mypy: clean on changed files
2026-06-14 21:25:41 +00:00

1.1 KiB

apps/api/tests (index)

dir: apps/api/tests

role

Provides shared test infrastructure and fixtures for the API test suite

parent

index: apps/api/.pi-map.index.md map: apps/api/.pi-map.md

children

  • apps/api/tests/api index: apps/api/tests/api/.pi-map.index.md map: apps/api/tests/api/.pi-map.md
  • apps/api/tests/integration index: apps/api/tests/integration/.pi-map.index.md map: apps/api/tests/integration/.pi-map.md
  • apps/api/tests/services index: apps/api/tests/services/.pi-map.index.md map: apps/api/tests/services/.pi-map.md
  • apps/api/tests/system index: apps/api/tests/system/.pi-map.index.md map: apps/api/tests/system/.pi-map.md
  • apps/api/tests/unit index: apps/api/tests/unit/.pi-map.index.md map: apps/api/tests/unit/.pi-map.md

files

  • conftest.py

index: apps/api/tests/.pi-map.index.md map: apps/api/tests/.pi-map.md

workflows

  • change tests behavior read: conftest.py
  • explore tests subdirectories index: apps/api/tests/api/.pi-map.index.md, apps/api/tests/integration/.pi-map.index.md, apps/api/tests/services/.pi-map.index.md

dirty