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 723c775dbb tsd, ipnlocal, etc: add tsd.System.HealthTracker, start some plumbing
This adds a health.Tracker to tsd.System, accessible via
a new tsd.System.HealthTracker method.

In the future, that new method will return a tsd.System-specific
HealthTracker, so multiple tsnet.Servers in the same process are
isolated. For now, though, it just always returns the temporary
health.Global value. That permits incremental plumbing over a number
of changes. When the second to last health.Global reference is gone,
then the tsd.System.HealthTracker implementation can return a private
Tracker.

The primary plumbing this does is adding it to LocalBackend and its
dozen and change health calls. A few misc other callers are also
plumbed. Subsequent changes will flesh out other parts of the tree
(magicsock, controlclient, etc).

Updates #11874
Updates #4136

Change-Id: Id51e73cfc8a39110425b6dc19d18b3975eac75ce
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
1 month ago
..
archtest all: cleanup unused code, part 1 (#10661) 5 months ago
deptest tstest/deptest: fix minor escaping error in regex 7 months ago
integration tsd, ipnlocal, etc: add tsd.System.HealthTracker, start some plumbing 1 month ago
iosdeps ipn/ipnlocal: add c2n /debug/pprof/allocs endpoint 2 months ago
jsdeps tstest/deptest: add test-only package to unify negative dep tests 11 months ago
natlab all: use Go 1.22 range-over-int 2 months ago
tools cmd/k8s-operator,k8s-operator,go.{mod,sum},tstest/tools: add Tailscale Kubernetes operator API docs (#11246) 3 months ago
allocs.go all: update copyright and license headers 1 year ago
clock.go tstime: add Since method (#8622) 11 months ago
clock_test.go all: use Go 1.22 range-over-int 2 months ago
log.go wgengine/magicsock: disable portmapper in tunchan-faked tests 2 months ago
log_test.go all: update copyright and license headers 1 year ago
resource.go all: use Go 1.22 range-over-int 2 months ago
tstest.go ipn/{conffile,ipnlocal}: start booting tailscaled from a config file w/ auth key 8 months ago
tstest_test.go tstest: add method to Replace values for tests 1 year ago