Add end-to-end test cases to TestUnmarshalPolicy that verify bracketed IPv6 addresses are correctly parsed through the full policy pipeline (JSON unmarshal -> splitDestinationAndPort -> parseAlias -> parsePortRange) and survive JSON round-trips. Cover single port, multiple ports, wildcard port, CIDR prefix, port range, bracketed IPv4, and hostname rejection. Updates #2754 |
||
|---|---|---|
| .. | ||
| matcher | ||
| policyutil | ||
| v2 | ||
| pm.go | ||
| policy.go | ||
| policy_autoapprove_test.go | ||
| policy_route_approval_test.go | ||
| policy_test.go | ||
| route_approval_test.go | ||