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. |
||
|---|---|---|
| .. | ||
| mix/tasks | ||
| towerops | ||
| towerops_web | ||
| towerops.ex | ||
| towerops_web.ex | ||