You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(keepass-cred-mgr): add security, integration, and unit tests (204 → 241)
Security tests: audit redaction, CLI notes injection, file shredding
verification, XML special char escaping. Integration tests: get_entry,
search, get/add attachment, import with password-auth merge adapter.
Fixed missing pytestmark=pytest.mark.unit on 4 test files that caused
pytest -m unit to silently drop 74 tests. Coverage: 80% → 99.8%.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
-`docs/testing/TEST_STATUS.json` for persistent test posture tracking
15
+
16
+
### Fixed
17
+
- Four test files (`test_audit.py`, `test_config.py`, `test_main.py`, `test_yubikey.py`) were missing `pytestmark = pytest.mark.unit`, causing `pytest -m unit` to silently drop 74 tests and report 80% coverage instead of 99%
- **Two-database architecture**: A primary database (YubiKey-only, used by the MCP server) and a backup database (password-only, never used by the server) kept in sync via KeePassXC's merge function. If the YubiKey is lost, the backup provides recovery without compromising the primary's auth model.
190
190
191
+
## Testing
192
+
193
+
241 tests across unit, integration, and security categories at 99% line coverage.
Security-specific tests cover audit log redaction of sensitive keys, CLI notes injection prevention, temp file shredding verification, XML special character escaping, and tag-based access control enforcement (AI RESTRICTED and READ ONLY).
208
+
191
209
## Planned Features
192
210
193
211
- **Credential provisioning agent**: A purpose-built subagent for setting up new project environments; audits existing vault entries, generates missing credentials, and stores them with consistent naming.
0 commit comments