Pulse/internal
rcourtman 722ea83b5d Add unit tests for RateLimiter (internal/api/ratelimit.go)
16 test cases covering:
- Basic rate limiting with Allow() (limit enforcement, different IPs)
- Sliding window behavior (time-based expiry, partial expiry)
- Edge cases (zero limit, large limit, empty IP)
- Cleanup routine (full cleanup, partial cleanup)
- Concurrent access (thread safety with 100 parallel attempts)
- Middleware integration (allowed/denied paths, X-Forwarded-For)

First test file for internal/api package.
2025-11-30 04:33:59 +00:00
..
agentbinaries chore: fix staticcheck SA warnings 2025-11-27 09:16:53 +00:00
agentupdate Add unit tests for agentupdate utility functions 2025-11-30 03:48:50 +00:00
alerts style: fix revive linter warnings 2025-11-27 10:26:26 +00:00
api Add unit tests for RateLimiter (internal/api/ratelimit.go) 2025-11-30 04:33:59 +00:00
auth test: add unit tests for auth package 2025-11-26 13:51:13 +00:00
config Add unit tests for config encryption functions 2025-11-30 01:48:20 +00:00
crypto chore: remove additional dead code 2025-11-27 05:13:26 +00:00
discovery Add unit tests for discovery config_override utility functions 2025-11-30 00:50:07 +00:00
dockeragent Consolidate duplicate normalizeVersion functions into shared utility 2025-11-29 22:57:33 +00:00
errors test: add unit tests for errors package 2025-11-26 14:09:14 +00:00
hostagent Add unit tests for hostagent utility functions 2025-11-30 01:34:55 +00:00
hostmetrics Fix ZFS storage reporting on TrueNAS SCALE (#718) 2025-11-22 23:53:39 +00:00
logging chore: remove dead code and unused exports 2025-11-27 13:17:39 +00:00
mdadm feat: Add mdadm RAID monitoring support for host agents 2025-11-09 16:36:33 +00:00
metrics chore: remove dead code and unused exports 2025-11-27 13:17:39 +00:00
mock Refine memory visualization with StackedMemoryBar component 2025-11-29 13:48:30 +00:00
models style: use direct type conversions in model converters 2025-11-27 09:24:39 +00:00
monitoring Add unit tests for temperature utility functions 2025-11-30 04:20:28 +00:00
notifications Add unit tests for notification queue utility functions 2025-11-30 03:19:23 +00:00
sensors style: fix gofmt formatting inconsistencies 2025-11-26 23:44:36 +00:00
ssh/knownhosts chore: remove additional dead code 2025-11-27 05:13:26 +00:00
system style: fix gofmt formatting inconsistencies 2025-11-26 23:44:36 +00:00
tempproxy chore: fix staticcheck SA warnings 2025-11-27 09:16:53 +00:00
types test: add unit tests for types package 2025-11-26 14:10:21 +00:00
updates Add unit tests for InstallShAdapter utility functions 2025-11-30 04:04:27 +00:00
utils Consolidate duplicate normalizeVersion functions into shared utility 2025-11-29 22:57:33 +00:00
websocket Add unit tests for websocket utility functions 2025-11-30 00:34:38 +00:00