towerops/test
Graham McIntire 5ccda65dd1
Add comprehensive tests for Towerops.Snmp context
Added 18 new tests covering:
- get_latest_sensor_readings_batch/1 (batch operations)
- get_latest_interface_stats_batch/1 (batch operations)
- list_neighbors/1 (neighbor queries with ordering)
- get_neighbor/1 (single neighbor retrieval)
- upsert_neighbor/1 (create and update operations)
- delete_stale_neighbors/2 (time-based cleanup)

Tests verify:
- Batch operations match individual queries
- Empty input handling
- Latest record selection
- Ordering by protocol and name
- Stale data cleanup across devices
- Update semantics for existing records

Coverage improvement:
- Towerops.Snmp: 63.33% → 73.33% (+10%)
- Total tests: 1089 → 1106 (+17 tests)
- Overall coverage: 49.69% → 49.82%
2026-01-20 14:02:45 -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 Add comprehensive tests for Towerops.Snmp context 2026-01-20 14:02:45 -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