mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-11 14:00:29 +00:00
6065e9fbb0
Add comprehensive direct tests for the CheckProxyAuth function covering: - Not configured (returns false) - Invalid secret (returns false) - Missing secret header (returns false) - Valid secret without user header configured (returns true, admin) - Missing user header when configured (returns false) - Valid auth with username (returns true with username) - Role checking with empty roles header (defaults to admin) - Role checking with admin role present (returns admin=true) - Role checking without admin role (returns admin=false) - Custom role separator (comma instead of pipe) - Role with whitespace (trimmed correctly) Coverage: CheckProxyAuth 89.3% → 100%