towerops/test
Graham McIntire f0f5aca491
Allow empty SNMP community string for device inheritance
Implemented hierarchical SNMP community string inheritance following TDD:

Schema changes:
- Updated Device.changeset to remove required validation for snmp_community
- Community string is now optional when SNMP is enabled
- Allows inheritance from site or organization level

Inheritance hierarchy:
- Device-level community (highest priority)
- Site-level community
- Organization-level community
- nil (no community set at any level)

Form updates:
- extract_snmp_config now resolves inherited community for SNMP testing
- validate_test_snmp_input provides clearer error message about inheritance
- SNMP test uses effective community from hierarchy

Tests:
- Added tests for creating devices with nil/empty community string
- Added comprehensive SNMP configuration inheritance tests
- Tests verify hierarchy: device > site > org > default
- All 28 device tests passing

All 808 tests passing (2 pre-existing alert notifier failures unrelated to this change)
No Credo warnings
2026-01-17 15:54:06 -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 Allow empty SNMP community string for device inheritance 2026-01-17 15:54:06 -06:00
towerops_web Add agent rename functionality 2026-01-17 15:48:47 -06:00
test_helper.exs moar tests 2026-01-06 15:43:54 -06:00