towerops/test/towerops
Graham McIntire 89a076fb67
feat: migrate equipment features to gettext and fix sudo mode tests
Migrates all equipment-related flash messages to gettext for internationalization:
- DeviceLive.Index: device discovery, reordering, error messages
- DeviceLive.Show: backup messages, permission errors
- DeviceLive.Form: device CRUD operations
- AlertLive.Index: alert acknowledgment messages
- SiteLive.Show: site discovery messages
- SiteLive.Form: site CRUD and SNMP/agent propagation

Fixes sudo mode test suite issues:
- Updates Accounts.sudo_mode?/2 test to check last_sudo_at instead of authenticated_at
- Adds register_and_log_in_user_with_sudo/1 helper to ConnCase
- Fixes UserAuth sudo mode tests to use session-based authentication
- Updates MyData tests to use sudo mode (now required per router config)
- Removes obsolete UserSettingsLive "without sudo mode" test
- Fixes grant_sudo_mode/1 DateTime truncation to seconds

All equipment module tests passing. Ready for Phase 3 (Admin Features).
2026-02-02 12:41:58 -06:00
..
accounts Replace single name field with first_name and last_name 2026-02-01 15:00:23 -06:00
agents more tests and fixes 2026-01-31 16:00:07 -06:00
api_tokens add parallel build 2026-01-19 14:17:05 -06:00
devices Mikrotik backup and gettext start 2026-02-02 09:11:22 -06:00
ecto_types refactor 2026-01-31 09:35:07 -06:00
equipment faster tests 2026-01-27 09:30:18 -06:00
monitoring faster tests 2026-01-27 09:30:18 -06:00
organizations mfa enforced on login 2026-01-29 14:31:13 -06:00
profiles fix prod crash with yaml parsing 2026-01-31 08:25:07 -06:00
proto agent overhaul 2026-01-30 16:05:23 -06:00
sites Add comprehensive tests for Sites.Site schema 2026-01-13 09:05:02 -06:00
snmp banner dissmiss and mikrotik version and license 2026-01-31 13:07:09 -06:00
workers Add firmware version tracking system 2026-02-01 10:46:27 -06:00
accounts_test.exs feat: migrate equipment features to gettext and fix sudo mode tests 2026-02-02 12:41:58 -06:00
admin_test.exs refactor 2026-01-31 09:35:07 -06:00
agents_test.exs more tests and fixes 2026-01-31 16:00:07 -06:00
alerts_test.exs refactor 2026-01-31 09:35:07 -06:00
api_tokens_test.exs faster tests 2026-01-27 09:30:18 -06:00
devices_test.exs refactor 2026-01-31 09:35:07 -06:00
honeybadger_filter_test.exs filter more honeybadger alerts, format dates to users time zone, email template cleanup 2026-02-01 09:27:42 -06:00
log_filter_test.exs Fix Credo issues and improve code quality 2026-01-19 15:09:19 -06:00
monitoring_test.exs forgot password flow 2026-01-31 17:03:22 -06:00
organizations_test.exs add device/org limit 2026-01-27 14:14:25 -06:00
profiles_test.exs Add comprehensive test coverage for core context modules 2026-01-19 14:38:34 -06:00
redis_health_check_test.exs faster tests 2026-01-27 09:30:18 -06:00
settings_test.exs remote agent/cloud improvements 2026-01-24 09:16:41 -06:00
sites_test.exs poller agent fix and trigger device rediscovery 2026-01-26 14:51:32 -06:00
snmp_test.exs discovery working 2026-01-25 14:48:57 -06:00