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/ipn
Avery Pennarun b7e31ab1a4 ipn: mock controlclient.Client; big ipn.Backend state machine test.
A very long unit test that verifies the way the controlclient and
ipn.Backend interact.

This is a giant sequential test of the state machine. The test passes,
but only because it's asserting all the wrong behaviour. I marked all
the behaviour I think is wrong with BUG comments, and several
additional test opportunities with TODO.

Note: the new test supercedes TestStartsInNeedsLoginState, which was
checking for incorrect behaviour (although the new test still checks
for the same incorrect behaviour) and assumed .Start() would converge
before returning, which it happens to do, but only for this very
specific case, for the current implementation. You're supposed to wait
for the notifications.

Updates: tailscale/corp#1660

Signed-off-by: Avery Pennarun <apenwarr@tailscale.com>
5 years ago
..
ipnlocal ipn: mock controlclient.Client; big ipn.Backend state machine test. 5 years ago
ipnserver cmd/tailscaled: don't block ipnserver startup behind engine init on Windows 5 years ago
ipnstate ipn/ipnlocal, etc: require file sharing capability to send/recv files 5 years ago
localapi ipn/ipnlocal, etc: require file sharing capability to send/recv files 5 years ago
policy ipn/policy: mark peerapi4 and peerapi6 as interesting services 5 years ago
backend.go ipn: mock controlclient.Client; big ipn.Backend state machine test. 5 years ago
doc.go Move Linux client & common packages into a public repo. 6 years ago
fake_test.go ipn{,/ipnlocal}, cmd/tailscale/cli: don't check pref reverts on initial up 5 years ago
handle.go ipn{,/ipnlocal}, cmd/tailscale/cli: don't check pref reverts on initial up 5 years ago
message.go ipn: define NewBackendServer nil as not affecting Backend's NotifyCallback 5 years ago
message_test.go ipn: define NewBackendServer nil as not affecting Backend's NotifyCallback 5 years ago
prefs.go ipn, cmd/tailscale/cli: add pref to configure sudo-free operator user 5 years ago
prefs_clone.go ipn, cmd/tailscale/cli: add pref to configure sudo-free operator user 5 years ago
prefs_test.go ipn, cmd/tailscale/cli: add pref to configure sudo-free operator user 5 years ago
store.go wgkey: new package 5 years ago
store_test.go Add tstest.PanicOnLog(), and fix various problems detected by this. 6 years ago