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
Alex Chan 06f12186d9 tstest/integration: test `tailscale up` when device approval is required
This patch extends the integration tests for `tailscale up` to include tailnets
where new devices need to be approved. It doesn't change the CLI, because it's
mostly working correctly already -- these tests are just to prevent future
regressions.

I've added support for `MachineAuthorized` to mock control, and I've refactored
`TestOneNodeUpAuth` to be more flexible. It now takes a sequence of steps to
run and asserts whether we got a login URL and/or machine approval URL after
each step.

Updates tailscale/corp#31476
Updates #17361

Signed-off-by: Alex Chan <alexc@tailscale.com>
2 months ago
..
archtest all: don't rebind variables in for loops 2 months ago
deptest ipn/ipnlocal: use policyclient.Client always, stop using global syspolicy funcs 3 months ago
integration tstest/integration: test `tailscale up` when device approval is required 2 months ago
iosdeps feature/capture: move packet capture to feature/*, out of iOS + CLI 10 months ago
jsdeps all: use math/rand/v2 more 2 years ago
mts tstest/mts: add multiple-tailscaled development tool 8 months ago
natlab derp/derpserver: clean up extraction of derp.Server (#17264) 2 months ago
nettest net/{netx,memnet},all: add netx.DialFunc, move memnet Network impl 8 months ago
tailmac tstest/tailmac: add support for mounting host directories in the guest (#13957) 1 year ago
tlstest tstest/tlstest: simplify, don't even bake in any keys 6 months ago
tools go.{mod,sum},tstest/tools,k8s-operator,cmd/k8s-operator: autogenerate CRD API docs (#12884) 1 year ago
allocs.go all: update copyright and license headers 3 years ago
clock.go tstime: add Since method (#8622) 2 years ago
clock_test.go all: don't rebind variables in for loops 2 months ago
log.go net/portmapper: fix test flakes from logging after test done 7 months ago
log_test.go all: update copyright and license headers 3 years ago
reflect.go net/dns: fix IsZero and Equal methods on OSConfig 1 year ago
resource.go tstest: parse goroutines for diff in ResourceCheck (#15619) 8 months ago
resource_test.go tstest: parse goroutines for diff in ResourceCheck (#15619) 8 months ago
test-wishlist.md wf/firewall: allow link-local multicast for permitted local routes when the killswitch is on on Windows 1 year ago
tstest.go util/backoff: rename logtail/backoff package to util/backoff 2 months ago
tstest_test.go tstest: add method to Replace values for tests 3 years ago