fetch_ml/internal/auth
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
..
kms refactor: co-locate api, audit, auth tests with source code 2026-03-12 16:34:54 -04:00
api_key.go fix: add CGO build tags to consistency tests, remove unused isHex function 2026-03-08 13:10:00 -04:00
api_key_test.go refactor: co-locate api, audit, auth tests with source code 2026-03-12 16:34:54 -04:00
crypto.go refactor(api): internal refactoring for TUI and worker modules 2026-02-20 15:51:23 -05:00
database.go feat(auth): add token-based access and structured logging 2026-03-08 12:51:07 -04:00
flags.go feat(auth): add token-based access and structured logging 2026-03-08 12:51:07 -04:00
hybrid.go feat(crypto,auth): harden KMS and improve permission handling 2026-03-12 12:04:32 -04:00
keychain.go refactor(auth): add tenant scoping and permission enhancements 2026-02-26 12:06:08 -05:00
keychain_test.go refactor: co-locate api, audit, auth tests with source code 2026-03-12 16:34:54 -04:00
permissions.go feat(auth): add token-based access and structured logging 2026-03-08 12:51:07 -04:00
permissions_loader.go feat(crypto,auth): harden KMS and improve permission handling 2026-03-12 12:04:32 -04:00
tokens.go feat(auth): add token-based access and structured logging 2026-03-08 12:51:07 -04:00
user_manager_test.go refactor: co-locate api, audit, auth tests with source code 2026-03-12 16:34:54 -04:00
validator.go feat(crypto,auth): harden KMS and improve permission handling 2026-03-12 12:04:32 -04:00