rcourtman
72420a616a
ADA changes (auto-committed by cron safety check)
2025-12-01 11:20:57 +00:00
rcourtman
22b429a1c9
test: Add unit tests for validateIPAddress, validatePort, defaultPortForNodeType
...
Cover API validation functions that were previously untested:
- validateIPAddress: IPv4/IPv6 validation with edge cases
- validatePort: Port range validation (1-65535)
- defaultPortForNodeType: Proxmox node type to default port mapping
2025-12-01 11:06:50 +00:00
rcourtman
5fcd4e9cb9
Add unit tests for extractHostAndPort utility function
...
27 test cases covering URL/host:port parsing for node configuration:
- Scheme stripping (http://, https://)
- Path removal from URLs
- IPv4 addresses with and without ports
- IPv6 addresses (bracketed with port, unbracketed)
- Edge cases (empty string, localhost, port-only)
- Error cases (malformed brackets)
Documents current behavior: bracketed IPv6 without port returns error
(net.SplitHostPort limitation).
2025-12-01 01:19:10 +00:00
rcourtman
2fe7bb6141
style: fix gofmt formatting inconsistencies
...
Run gofmt -w to fix tab/space inconsistencies across 33 files.
2025-11-26 23:44:36 +00:00
rcourtman
044dadcdf1
Related to #727 : restore default Proxmox ports
2025-11-20 16:35:08 +00:00
rcourtman
22f9750044
Respect user-provided node host URLs (Related to #724 )
2025-11-20 09:40:38 +00:00