towerops/test/towerops_web/controllers/api/v1
Graham McIntire 2269f38fc5 test: lift coverage 78.42% → 79.59% with focused unit + integration tests
Adds tests across previously-uncovered or under-covered modules:

- Mix tasks: backfill_checks, copy_mibs, import_mibs (new test files)
- Status pages: StatusIncident changeset (new file)
- Webhook signature verification on AgentReleaseWebhookController
- CloudflareBanWorker: HTTP-stubbed success / 5xx / transport-error paths
- FirmwareVersionFetcherWorker: stubbed perform/0 success + non-200 + tx error
- Geoip.Import: production --production code path (HTTP-stubbed)
- AgentLive.Show: superuser restart_agent + update_agent + non-superuser paths
- NetworkMapLive: node_clicked, deep-link node, topology_updated PubSub
- PreseemInsightsLive: toggle_select, deselect_all, filter, dismiss-twice
- AlertQuery: 1-arity defaults variants
- ProfileWatcher: yaml + reload-trigger event passthrough
- MobileAuthController: verify_qr_token success + get/revoke session
- HealthController: redis-configured branch
- RedisHealthCheck: un-tag :integration tests now that Redis is local
- FourOhFourTracker: un-skip module (Redis available)
- PingExecutor: un-tag local-only tests + KeyError surface + clamp branch
- CheckExecutorWorker: dispatch tcp/dns/ssl/ping branches
- UserResetPasswordController: drop dead edit/update + their template

Also removes dead code: edit/update actions on UserResetPasswordController
and the unused edit.html.heex template — both routed via LiveView.
2026-05-07 18:40:43 -05:00
..
activity_controller_test.exs test: add on-call, incident, and PagerDuty notification test coverage 2026-03-14 15:10:27 -05:00
agent_release_webhook_controller_test.exs test: lift coverage 78.42% → 79.59% with focused unit + integration tests 2026-05-07 18:40:43 -05:00
agents_controller_test.exs add missing REST API controller tests 2026-03-11 14:43:17 -05:00
alerts_controller_test.exs refactor/dry-improvements (#202) 2026-03-28 10:56:34 -05:00
check_results_controller_test.exs add auto ICMP ping check for all devices (#68) 2026-03-17 17:55:23 -05:00
checks_controller_test.exs add service checks REST API, GraphQL API, and ping executor (#52) 2026-03-16 18:40:18 -05:00
coverages_controller_test.exs feat(coverage): public REST API + KMZ export + email-on-complete 2026-05-06 17:15:57 -05:00
devices_controller_test.exs fix: allow site_id on device create regardless of use_sites setting 2026-02-15 12:28:06 -06:00
escalation_policies_controller_test.exs feat: add REST API and GraphQL for on-call schedules and escalation policies 2026-03-11 14:01:15 -05:00
gaiia_webhook_controller_test.exs Fix tests, credo issues, and Gaiia sync bugs 2026-02-15 11:55:49 -06:00
geoip_controller_test.exs test: expand coverage across resolvers, vendors, controllers, workers 2026-05-07 14:23:58 -05:00
integrations_controller_test.exs add missing REST API controller tests 2026-03-11 14:43:17 -05:00
invitations_controller_test.exs add missing REST API controller tests 2026-03-11 14:43:17 -05:00
maintenance_windows_controller_test.exs add maintenance windows REST API and GraphQL support 2026-03-11 14:33:25 -05:00
members_controller_test.exs add missing REST API controller tests 2026-03-11 14:43:17 -05:00
mib_controller_test.exs test: lift coverage to 78.42% and link Ansible collection in docs 2026-05-07 16:48:53 -05:00
organization_controller_test.exs add missing REST API controller tests 2026-03-11 14:43:17 -05:00
pagerduty_webhook_controller_test.exs refactor/dry-improvements (#202) 2026-03-28 10:56:34 -05:00
schedules_controller_test.exs feat: add REST API and GraphQL for on-call schedules and escalation policies 2026-03-11 14:01:15 -05:00
sites_controller_test.exs feat: add critical network switch sensor support (HP Comware, Dell PowerConnect, Dell SONiC) 2026-02-11 17:36:45 -06:00
stripe_webhook_controller_test.exs stripe and email after signup 2026-03-06 10:07:27 -06:00