towerops/test
Graham McIntire fcc1fbbe73
Refactor MonitorWorker to use ping adapter and eliminate real network traffic from tests
Changes:
- Updated MonitorWorker to use configured ping_module adapter instead of System.cmd
- Removed direct ping command execution and regex parsing
- Simplified ping_device/1 to use adapter.ping/2 (mockable in tests)
- Added PingMock expectations to all MonitorWorker tests
- Removed @tag :integration from unreachable host test (now mocked)
- All ping calls now use mocked responses in tests

Benefits:
- MonitorWorker tests now run in 0.2s instead of 5+ seconds
- No real ICMP network traffic during test runs
- Tests are deterministic and don't depend on network conditions
- Follows same adapter pattern as SNMP (testable, configurable)

All 1041 tests passing with no real network operations.
2026-01-20 12:29:12 -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 Refactor MonitorWorker to use ping adapter and eliminate real network traffic from tests 2026-01-20 12:29:12 -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