mirror of
https://github.com/tailscale/tailscale.git
synced 2025-12-23 09:06:24 +00:00
types/netmap: remove PrivateKey from NetworkMap
It's an unnecessary nuisance having it. We go out of our way to redact it in so many places when we don't even need it there anyway. Updates #12639 Change-Id: I5fc72e19e9cf36caeb42cf80ba430873f67167c3 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
98aadbaf54
commit
653d0738f9
@@ -2128,16 +2128,10 @@ func TestC2NDebugNetmap(t *testing.T) {
|
||||
var current netmap.NetworkMap
|
||||
must.Do(json.Unmarshal(resp.Current, ¤t))
|
||||
|
||||
if !current.PrivateKey.IsZero() {
|
||||
t.Errorf("current netmap has non-zero private key: %v", current.PrivateKey)
|
||||
}
|
||||
// Check candidate netmap if we sent a map response.
|
||||
if cand != nil {
|
||||
var candidate netmap.NetworkMap
|
||||
must.Do(json.Unmarshal(resp.Candidate, &candidate))
|
||||
if !candidate.PrivateKey.IsZero() {
|
||||
t.Errorf("candidate netmap has non-zero private key: %v", candidate.PrivateKey)
|
||||
}
|
||||
if diff := cmp.Diff(current.SelfNode, candidate.SelfNode); diff != "" {
|
||||
t.Errorf("SelfNode differs (-current +candidate):\n%s", diff)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user