rcourtman
6c88f79404
ADA changes (auto-committed by cron safety check)
2025-12-01 11:20:57 +00:00
rcourtman
48aacecf0d
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
7d62fb6f1c
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
01f7d81d38
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
17102706ae
Related to #727 : restore default Proxmox ports
2025-11-20 16:35:08 +00:00
rcourtman
d68da802ac
Respect user-provided node host URLs (Related to #724 )
2025-11-20 09:40:38 +00:00