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/integration
Brad Fitzpatrick e968b0ecd7 cmd/tailscale,controlclient,ipnlocal: fix 'up', deflake tests more
The CLI's "up" is kinda chaotic and LocalBackend.Start is kinda
chaotic and they both need to be redone/deleted (respectively), but
this fixes some buggy behavior meanwhile. We were previously calling
StartLoginInteractive (to start the controlclient's RegisterRequest)
redundantly in some cases, causing test flakes depending on timing and
up's weird state machine.

We only need to call StartLoginInteractive in the client if Start itself
doesn't. But Start doesn't tell us that. So cheat a bit and a put the
information about whether there's a current NodeKey in the ipn.Status.
It used to be accessible over LocalAPI via GetPrefs as a private key but
we removed that for security. But a bool is fine.

So then only call StartLoginInteractive if that bool is false and don't
do it in the WatchIPNBus loop.

Fixes #12028
Updates #12042

Change-Id: I0923c3f704a9d6afd825a858eb9a63ca7c1df294
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
7 months ago
..
testcontrol tailcfg,all: add/plumb Node.IsJailed 7 months ago
vms net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon 7 months ago
gen_deps.go all: update tools that manage copyright headers 2 years ago
integration.go all: use zstdframe where sensible (#11491) 8 months ago
integration_test.go cmd/tailscale,controlclient,ipnlocal: fix 'up', deflake tests more 7 months ago
tailscaled_deps_test_darwin.go net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon 7 months ago
tailscaled_deps_test_freebsd.go net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon 7 months ago
tailscaled_deps_test_linux.go net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon 7 months ago
tailscaled_deps_test_openbsd.go net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon 7 months ago
tailscaled_deps_test_windows.go net/{interfaces,netmon}, all: merge net/interfaces package into net/netmon 7 months ago