You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/tstest
Brad Fitzpatrick 0157000cab tstest/natlab: fix IPv6 tests, remove TODOs
The reason they weren't working was because the cmd/tta agent in the
guest was dialing out to the test and the vnet couldn't map its global
unicast IPv6 address to a node as it was just using a
map[netip.Addr]*node and blindly trusting the *node was
populated. Instead, it was nil, so the agent connection fetching
didn't work for its RoundTripper and the test could never drive the
node. That map worked for IPv4 but for IPv6 we need to use the method
that takes into account the node's IPv6 SLAAC address. Most call sites
had been converted but I'd missed that one.

Also clean up some debug, and prohibit nodes' link-local unicast
addresses from dialing 2000::/3 directly for now. We can allow that to
be configured opt-in later (some sort of IPv6 NAT mode. Whatever it's
called.) That mode was working on accident, but was confusing: Linux
would do source address selection from link local for the first few
seconds and then after SLAAC and DAD, switch to using the global
unicast source address. Be consistent for now and force it to use the
global unicast.

Updates #13038

Change-Id: I85e973aaa38b43c14611943ff45c7c825ee9200a
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
3 months ago
..
archtest all: cleanup unused code, part 1 (#10661) 11 months ago
deptest tstest/deptest: fix minor escaping error in regex 1 year ago
integration tstest/natlab: fix IPv6 tests, remove TODOs 3 months ago
iosdeps all: do not depend on the testing package 6 months ago
jsdeps all: use math/rand/v2 more 6 months ago
natlab tstest/natlab: fix IPv6 tests, remove TODOs 3 months ago
nettest cmd/derper,tstest/nettest: skip network-needing test in airplane mode 7 months ago
tailmac tstest/natlab: add unix address to writer for dgram mode 3 months ago
tools go.{mod,sum},tstest/tools,k8s-operator,cmd/k8s-operator: autogenerate CRD API docs (#12884) 4 months ago
allocs.go all: update copyright and license headers 2 years ago
clock.go tstime: add Since method (#8622) 1 year ago
clock_test.go all: use Go 1.22 range-over-int 7 months ago
log.go wgengine/magicsock: disable portmapper in tunchan-faked tests 7 months ago
log_test.go all: update copyright and license headers 2 years ago
resource.go all: use Go 1.22 range-over-int 7 months ago
tstest.go ipn/{conffile,ipnlocal}: start booting tailscaled from a config file w/ auth key 1 year ago
tstest_test.go tstest: add method to Replace values for tests 2 years ago