Pulse/internal
rcourtman aee687bb03 Add unit tests for DemoModeMiddleware (api)
26 test cases covering:
- Demo mode disabled (all requests pass through)
- Demo mode enabled with read-only methods (GET/HEAD/OPTIONS allowed)
- WebSocket upgrade handling (case-insensitive)
- Auth endpoint allowlist (login, OIDC, logout)
- Modification request blocking (POST/PUT/DELETE/PATCH)
- Partial path match rejection (security)
- Response format verification (JSON error response)

First test file for demo_middleware.go. Tests verify correct header
setting (X-Demo-Mode) and error response structure.
2025-11-30 13:34:08 +00:00
..
agentbinaries chore: fix staticcheck SA warnings 2025-11-27 09:16:53 +00:00
agentupdate Fix Windows agent self-update restart failure 2025-11-30 12:02:43 +00:00
alerts Add unit tests for alert utility functions (alerts) 2025-11-30 10:35:22 +00:00
api Add unit tests for DemoModeMiddleware (api) 2025-11-30 13:34:08 +00:00
auth
config Add unit tests for discovery config functions (config) 2025-11-30 10:49:03 +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 Add unit tests for dockeragent runtime detection functions 2025-11-30 08:47:46 +00:00
errors
hostagent Add unit tests for hostagent utility functions 2025-11-30 01:34:55 +00:00
hostmetrics Add unit tests for ZFS storage utility functions (hostmetrics) 2025-11-30 12:50:58 +00:00
logging chore: remove dead code and unused exports 2025-11-27 13:17:39 +00:00
mdadm
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 Add unit tests for missing ToFrontend converters (models) 2025-11-30 13:03:45 +00:00
monitoring Add unit tests for container disk usage utility functions (monitoring) 2025-11-30 13:20:39 +00:00
notifications Add unit tests for notification security utilities (notifications) 2025-11-30 08:05:04 +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
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