Files
headquarter/apps/api/tests/unit/.pi-map.index.md
T
Developer d395aaf574 fix: stage config-profile mounts as directories so ~/.config stays writable
- Switch apply_resolved_profile from per-file bind mounts to one
  directory-level bind mount per ResolvedMount target.
- Stage all configured files under instance_dir/mounts/<sanitized_target>
  and bind-mount that directory, so Docker no longer creates a root-owned
  parent directory such as ~/.config.
- Propagate read-only mode ('ro') as the 'readonly' flag on volume entries.
- Update unit tests to expect directory-level mounts and add coverage for
  readonly/writable flags.

Quality gates: python3 -m py_compile, pytest (313 passed, 34 skipped),
npm run typecheck, npm run lint.
2026-06-13 11:56:48 +00:00

43 lines
1.1 KiB
Markdown

# apps/api/tests/unit (index)
dir: apps/api/tests/unit
## role
Contains comprehensive unit tests for the API backend services covering configuration, Docker operations, Git integration, file management, health monitoring, notifications, and SSH key handling.
## parent
index: apps/api/tests/.pi-map.index.md
map: apps/api/tests/.pi-map.md
## children
-
## files
- __init__.py
- test_config.py
- test_config_profile_resolver.py
- test_docker_build.py
- test_docker_service.py
- test_event_bus.py
- test_file_service.py
- test_git_operations.py
- test_git_service.py
- test_git_url_parser.py
- test_health_monitor.py
- test_home_path_expansion.py
- test_lifecycle_hooks.py
- test_manifest_compiler.py
- test_migration_metadata.py
- test_monitoring_models.py
- test_notification_service.py
- test_notifications_api_routes.py
- test_permission_fixer.py
- test_readiness_probe.py
- test_ssh_keys.py
## links
index: apps/api/tests/unit/.pi-map.index.md
map: apps/api/tests/unit/.pi-map.md
## workflows
- change unit behavior
read: __init__.py, test_config.py, test_config_profile_resolver.py
- change unit config
read: test_config.py, test_config_profile_resolver.py
## dirty
-