mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-25 02:55:29 +00:00
1766e6b5df
There was a lot of tests that actually threw a lot of errors and that did not pass all the way because we didnt check everything. This commit should fix all of these cases. Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
34 lines
819 B
Go
34 lines
819 B
Go
package integration
|
|
|
|
import (
|
|
"net/netip"
|
|
"net/url"
|
|
|
|
"github.com/juanfont/headscale/integration/dockertestutil"
|
|
"github.com/juanfont/headscale/integration/tsic"
|
|
"tailscale.com/ipn/ipnstate"
|
|
)
|
|
|
|
// nolint
|
|
type TailscaleClient interface {
|
|
Hostname() string
|
|
Shutdown() error
|
|
Version() string
|
|
Execute(
|
|
command []string,
|
|
options ...dockertestutil.ExecuteCommandOption,
|
|
) (string, string, error)
|
|
Login(loginServer, authKey string) error
|
|
LoginWithURL(loginServer string) (*url.URL, error)
|
|
Logout() error
|
|
IPs() ([]netip.Addr, error)
|
|
FQDN() (string, error)
|
|
Status() (*ipnstate.Status, error)
|
|
WaitForNeedsLogin() error
|
|
WaitForRunning() error
|
|
WaitForPeers(expected int) error
|
|
Ping(hostnameOrIP string, opts ...tsic.PingOption) error
|
|
Curl(url string, opts ...tsic.CurlOption) (string, error)
|
|
ID() string
|
|
}
|