towerops/test/towerops_web
Graham McIntire 8d9d385683
fix: prevent AlreadySentError in BruteForceProtection plug
The plug was attempting to register a before_send callback after
blocking a banned IP and sending a 403 response. This caused
Plug.Conn.AlreadySentError in production.

Fixed by checking conn.halted before attempting to register the
404 tracking callback. If the request was already blocked and sent,
we skip the callback registration.

Also updated the test to verify proper behavior without the
workaround for AlreadySentError.
2026-02-12 12:53:32 -06:00
..
channels test: expand agent channel coverage from 8% to 66% 2026-02-11 16:52:12 -06:00
components add row_link to table component for proper anchor tags 2026-02-11 08:46:03 -06:00
controllers test: expand coverage for devices, workers, and LiveView modules 2026-02-12 09:06:41 -06:00
helpers more tests and fixes 2026-02-07 11:50:18 -06:00
integration test: add C NIF integration tests for web context 2026-01-30 13:29:04 -06:00
live feat: live device timestamp updates and org-scoped alert PubSub 2026-02-12 11:01:56 -06:00
plugs fix: prevent AlreadySentError in BruteForceProtection plug 2026-02-12 12:53:32 -06:00
permissions_test.exs fix snmp v3 test 2026-02-06 10:21:54 -06:00
plug_exceptions_test.exs handle exceptions gracefully on api endpoints 2026-02-04 12:18:14 -06:00
user_auth_test.exs fix test warnings and failures 2026-02-05 15:24:41 -06:00