towerops/test
Graham McIntire b116ed4f71
Fix worker test mock expectations and API calls
- Fix Monitoring context API calls (list_devices_checks vs list_checks_for_device)
- Fix Snmp context API calls (get_interface_stats, get_sensor_readings)
- Fix Devices context API calls (update_device vs update_device!)
- Fix Discovery worker to expect 7 GET calls (test_connection + system_info)
- Fix Poll worker to use stub instead of expect for variable call counts
- Fix sensor setup to use correct types (sensor_index: string, sensor_divisor: integer)
- Fix neighbor schema to include required fields (protocol, last_discovered_at)
- Simplify walk mocks to use stub for complex neighbor discovery

18 of 23 tests now passing. Remaining issues:
- 1 sensor error reading test (may need investigation)
- 4 log capture tests (ExUnit.CaptureLog not capturing logs from workers)
2026-01-20 12:13:14 -06:00
..
integration rename equipment to device 2026-01-17 14:48:46 -06:00
support rename equipment to device 2026-01-17 14:48:46 -06:00
towerops Fix worker test mock expectations and API calls 2026-01-20 12:13:14 -06:00
towerops_web test cleanup 2026-01-19 13:29:38 -06:00
test_helper.exs moar tests 2026-01-06 15:43:54 -06:00