fetch_ml/internal/audit
Jeremie Fraeys a4e2ecdbe6
refactor: co-locate api, audit, auth tests with source code
Move unit tests from tests/unit/ to internal/ following Go conventions:
- tests/unit/api/* -> internal/api/* (WebSocket handlers, helpers, duplicate detection)
- tests/unit/audit/* -> internal/audit/* (alert, sealed, verifier tests)
- tests/unit/auth/* -> internal/auth/* (API key, keychain, user manager)
- tests/unit/crypto/kms/* -> internal/auth/kms/* (cache, protocol tests)

Update import paths in test files to reflect new locations.

Benefits:
- Tests live alongside the code they test
- Easier navigation and maintenance
- Clearer package boundaries
- Follows standard Go project layout
2026-03-12 16:34:54 -04:00
..
platform feat(security): add audit subsystem and tenant isolation 2026-02-26 12:03:45 -05:00
alert.go feat(security): add audit subsystem and tenant isolation 2026-02-26 12:03:45 -05:00
alert_test.go refactor: co-locate api, audit, auth tests with source code 2026-03-12 16:34:54 -04:00
audit.go feat(audit): add HTTP audit middleware and tamper-evident logging 2026-03-08 13:03:02 -04:00
chain.go feat(audit): add HTTP audit middleware and tamper-evident logging 2026-03-08 13:03:02 -04:00
checkpoint.go feat(audit): add HTTP audit middleware and tamper-evident logging 2026-03-08 13:03:02 -04:00
rotation.go feat(audit): add HTTP audit middleware and tamper-evident logging 2026-03-08 13:03:02 -04:00
sealed.go feat(audit): add HTTP audit middleware and tamper-evident logging 2026-03-08 13:03:02 -04:00
sealed_test.go refactor: co-locate api, audit, auth tests with source code 2026-03-12 16:34:54 -04:00
verifier.go feat(audit): add HTTP audit middleware and tamper-evident logging 2026-03-08 13:03:02 -04:00
verifier_test.go refactor: co-locate api, audit, auth tests with source code 2026-03-12 16:34:54 -04:00