egressaddr: expect the "in or overlaps" reserved-range message
TestEntriesRefused still expected "is in", from before the reserved-range refusal also named overlapping prefixes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+3
−3
internal/egressaddr/egressaddr_test.go+3 −3
CI cancelled — superseded by a newer push — run details
CI log
=== gate === go: downloading go1.26.10 (linux/arm64) go version go1.26.10 linux/arm64 opentofu: arm64, tofu 1.13.9, aws 6.73.0, archive 2.8.1 tofu: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/tofu_1.13.9_linux_arm64.tar.gz tofu: downloaded, digest verified aws: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-aws_6.73.0_linux_arm64.zip aws: downloaded, digest verified archive: downloading https://carlos-ci-mirror-640012953448.s3.eu-west-1.amazonaws.com/opentofu/terraform-provider-archive_2.8.1_linux_arm64.zip archive: downloaded, digest verified installed in /tmp/carlos-opentofu-rcxUTU .amadan/test-gate.sh go: downloading github.com/aws/aws-sdk-go-v2/service/cloudwatch v1.68.0 go: downloading github.com/aws/aws-sdk-go-v2/service/costexplorer v1.67.5 go: downloading github.com/aws/aws-sdk-go-v2/service/s3 v1.105.0 go: downloading github.com/benbjohnson/litestream v0.5.14 go: downloading github.com/superfly/ltx v0.5.1 go: downloading golang.org/x/net v0.62.0 go: downloading modernc.org/sqlite v1.55.0 go: downloading github.com/aws/aws-sdk-go-v2/config v1.32.6 go: downloading golang.org/x/crypto v0.58.0 go: downloading github.com/aws/aws-sdk-go-v2/service/acm v1.45.0 go: downloading github.com/aws/aws-sdk-go-v2/service/ec2 v1.324.0 go: downloading github.com/aws/aws-sdk-go-v2/service/iam v1.58.2 go: downloading github.com/aws/aws-sdk-go-v2/service/resourcegroupstaggingapi v1.37.0 go: downloading github.com/aws/aws-sdk-go-v2/service/route53 v1.64.1 go: downloading golang.org/x/sys v0.49.0 go: downloading github.com/aws/aws-sdk-go-v2/service/sesv2 v1.66.6 go: downloading github.com/pion/stun/v3 v3.1.5 go: downloading github.com/pion/turn/v4 v4.1.4 go: downloading github.com/pion/transport/v4 v4.0.2 go: downloading github.com/pion/dtls/v3 v3.1.4 go: downloading github.com/klauspost/compress v1.20.2 go: downloading github.com/prometheus/client_golang v1.17.0 go: downloading github.com/lmittmann/tint v1.1.3 go: downloading golang.org/x/sync v0.24.0 go: downloading github.com/pierrec/lz4/v4 v4.1.22 go: downloading github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.20.18 go: downloading github.com/wlynxg/anet v0.0.5 go: downloading google.golang.org/protobuf v1.36.10 go: downloading github.com/cespare/xxhash/v2 v2.3.0 go: downloading github.com/prometheus/common v0.45.0 go: downloading github.com/prometheus/client_model v0.5.0 go: downloading github.com/prometheus/procfs v0.12.0 go: downloading github.com/beorn7/perks v1.0.1 go: downloading golang.org/x/text v0.43.0 go: downloading github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 go: downloading modernc.org/sqlite v1.55.0 go: downloading github.com/klauspost/compress v1.20.2 go: downloading golang.org/x/crypto/x509roots/fallback v0.0.0-20260209214922-2f26647a795e go: downloading github.com/aws/aws-sdk-go-v2/service/ecs v1.91.0 go: downloading github.com/pierrec/lz4/v4 v4.1.22 go: downloading modernc.org/libc v1.74.1 go: downloading modernc.org/libc v1.74.1 go: downloading github.com/dustin/go-humanize v1.0.1 go: downloading modernc.org/mathutil v1.7.1 go: downloading github.com/google/uuid v1.6.0 go: downloading modernc.org/memory v1.11.0 go: downloading modernc.org/mathutil v1.7.1 go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec amadan: job cancelled — a newer push superseded it
diff --git a/internal/egressaddr/egressaddr_test.go b/internal/egressaddr/egressaddr_test.go| index 58b3ee371..d2d07c133 100644 |
| --- a/internal/egressaddr/egressaddr_test.go |
| +++ b/internal/egressaddr/egressaddr_test.go |
| @@ -168,9 +168,9 @@ func TestEntriesRefused(t *testing.T) { |
| "169.254.169.0/24": "169.254.169.0/24 is link-local", |
| "fd00:ec2::/48": "fd00:ec2::/48 would reach the cloud metadata service", |
| "64:ff9b::/96": "64:ff9b::/96 is in the NAT64 prefix 64:ff9b::/96, which reaches any IPv4 address", |
| - "198.18.0.0/16": "198.18.0.0/16 is in 198.18.0.0/15, a reserved range", |
| + "198.18.0.0/16": "198.18.0.0/16 is in or overlaps 198.18.0.0/15, a reserved range", |
| "8.8.8.0/24": "8.8.8.0/24 is not wholly inside a private range", |
| - "0.0.0.0/16": "0.0.0.0/16 is in 0.0.0.0/8, a reserved range", |
| + "0.0.0.0/16": "0.0.0.0/16 is in or overlaps 0.0.0.0/8, a reserved range", |
| "224.0.0.0/16": "224.0.0.0/16 is multicast", |
| "127.0.0.0/16": "127.0.0.0/16 is loopback", |
| "fe80::/64": "fe80::/64 is link-local", |
| @@ -181,7 +181,7 @@ func TestEntriesRefused(t *testing.T) { |
| "10.0.0.0/": "is not an IP address", |
| "fd00:5::/129": "is not an IP address", |
| "172.16.0.0/12": "172.16.0.0/12 is wider than /16", |
| - "fec0::/48": "fec0::/48 is in fec0::/10, a reserved range", |
| + "fec0::/48": "fec0::/48 is in or overlaps fec0::/10, a reserved range", |
| "2001:db8::/48": "2001:db8::/48 is not wholly inside a private range", |
| "8.8.8.8/32": "8.8.8.8 is a public address", |
| "169.254.169.254/32": "169.254.169.254 would reach the cloud metadata service", |