cmd/tailscale: don't depend on regexp in minbox builds
Updates #12614 Updates #18562 Change-Id: Ife4f10c55d1d68569938ffd68ffe72eef889e200 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
058cc3f82b
commit
0c5b17c1d3
@@ -1804,8 +1804,8 @@ func TestSanitizeWriter(t *testing.T) {
|
||||
buf := new(bytes.Buffer)
|
||||
w := sanitizeOutput(buf)
|
||||
|
||||
in := []byte(`my auth key is tskey-auth-abc123-def456, what's yours?`)
|
||||
want := []byte(`my auth key is tskey-REDACTED, what's yours?`)
|
||||
in := []byte(`my auth key is tskey-auth-abc123-def456 and tskey-foo, what's yours?`)
|
||||
want := []byte(`my auth key is tskey-XXXXXXXXXXXXXXXXXX and tskey-XXX, what's yours?`)
|
||||
n, err := w.Write(in)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
||||
Reference in New Issue
Block a user