Files
headquarter/apps/api/tests/.pi-map.index.md
T
Developer a4e6c46a47 fix: run manifest containers as root and drop privileges in entrypoint
The compose file was forcing the container to run as uid 1001, so the
entrypoint could not create /workspace even with sudo configured.

- Remove Dockerfile USER directive so containers start as root
- Make compile_compose use user: 0:0 when the manifest declares a user
- Make the entrypoint drop to the container user via  after setup,
  preserving environment variables and command arguments
- Update unit tests to assert root startup and privilege drop

Quality gates:
- pytest tests/unit: 210 passed
- ruff: clean on changed files
- mypy: clean on changed files
2026-06-14 21:32:27 +00:00

37 lines
1.1 KiB
Markdown

# apps/api/tests (index)
dir: apps/api/tests
## role
Provides shared testing infrastructure and fixtures for the FastAPI API application tests.
## 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
## links
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
-