headscale/integration
Juan Font Alonso cb2790984f Added WaitForReady() to Tailscale interface
When using running `tailscale up` in the AuthKey flow process, the tailscale client immediately enters PollMap after registration - avoiding a race condition.

When using the web auth (up -> go to the Control website -> CLI `register`) the client is polling checking if it has been authorized. If we immediately ask for the client IP, as done in CreateHeadscaleEnv() we might have the client in NotReady status.

This method provides a way to wait for the client to be ready.

Signed-off-by: Juan Font Alonso <juanfontalonso@gmail.com>
2022-11-13 18:30:00 +01:00
..
dockertestutil Join test suite container to network, allowing seperate networks 2022-10-18 15:37:11 +02:00
hsic Add options to hsic, ACL and env overrides 2022-11-03 12:53:00 +01:00
tsic Added WaitForReady() to Tailscale interface 2022-11-13 18:30:00 +01:00
cli_test.go Port preauthkey subcommand tests 2022-10-26 10:23:44 +02:00
control.go Add Execute helper for controlserver 2022-10-26 10:23:44 +02:00
general_test.go port resolve magicdns test 2022-10-24 14:59:14 +02:00
scenario.go Add basic accept all acl to all test as example 2022-11-03 12:53:00 +01:00
scenario_test.go Use TailscaleClient interface instead of tsic 2022-10-21 13:17:54 +02:00
tailscale.go Added WaitForReady() to Tailscale interface 2022-11-13 18:30:00 +01:00