9f720930ea
- Remove compose-level user: 0:0 override from manifest_compiler.py so the entrypoint can start as root, fix mount ownership, and drop privileges to the container user internally. - Add get_manifest_container_user() helper to resolve the manifest-declared container user (with uid:gid fallback). - Pass container user through TerminalSession, TerminalManager, and the terminal WebSocket handler so docker exec is invoked with --user <user>. - Update and add unit tests for the manifest compiler and terminal session. - Record the additional root-user fix in the fix-pi-container-mount-permissions OpenSpec change/tasks. Quality gates: pytest tests/unit/ (226 passed), pytest tests/services/test_terminal_manager_multi.py (7 passed), ruff check on changed files (clean), mypy on changed files (clean)
1.1 KiB
1.1 KiB
apps/api/tests (index)
dir: apps/api/tests
role
Provides shared test infrastructure and fixtures for FastAPI API integration 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