mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-28 04:33:42 +00:00
tsnet,internal/client/tailscale: resolve OAuth into authkeys in tsnet (#17191)
* tsnet,internal/client/tailscale: resolve OAuth into authkeys in tsnet Updates #8403. * internal/client/tailscale: omit OAuth library via build tag Updates #12614. Signed-off-by: Naman Sood <mail@nsood.in>
This commit is contained in:
@@ -122,3 +122,16 @@ func TestOmitACME(t *testing.T) {
|
||||
},
|
||||
}.Check(t)
|
||||
}
|
||||
|
||||
func TestOmitOAuthKey(t *testing.T) {
|
||||
deptest.DepChecker{
|
||||
GOOS: "linux",
|
||||
GOARCH: "amd64",
|
||||
Tags: "ts_omit_oauthkey,ts_include_cli",
|
||||
OnDep: func(dep string) {
|
||||
if strings.HasPrefix(dep, "golang.org/x/oauth2") {
|
||||
t.Errorf("unexpected dep with ts_omit_oauthkey: %q", dep)
|
||||
}
|
||||
},
|
||||
}.Check(t)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user